summaryrefslogtreecommitdiff
path: root/src/widgets/styles/qwindowsstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qwindowsstyle.cpp')
-rw-r--r--src/widgets/styles/qwindowsstyle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/styles/qwindowsstyle.cpp b/src/widgets/styles/qwindowsstyle.cpp
index 0acd6052c8..b153d05885 100644
--- a/src/widgets/styles/qwindowsstyle.cpp
+++ b/src/widgets/styles/qwindowsstyle.cpp
@@ -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