Windows style: Support underlined mnemonics from Qt Quick Controls
We use the usual accessibility + private property combo pattern. Task-number: QTBUG-33030 Change-Id: I7fbb704c949ff2df163536534f6f46d2e226402d Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
This commit is contained in:
parent
46df8921e7
commit
e30bad8b24
@ -582,6 +582,12 @@ int QWindowsStyle::styleHint(StyleHint hint, const QStyleOption *opt, const QWid
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
if (!ret && opt && opt->type == QStyleOption::SO_MenuItem
|
||||
&& QStyleHelper::isInstanceOf(opt->styleObject, QAccessible::MenuItem)
|
||||
&& opt->styleObject->property("_q_showUnderlined").toBool())
|
||||
ret = 1;
|
||||
#endif // QT_NO_ACCESSIBILITY
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user