path: root/src/widgets/styles/qstyle.cpp
diff options
authorJake Petroules <>2017-02-27 19:57:30 -0800
committerJake Petroules <>2017-03-08 20:51:01 +0000
commit07ec1021952a2aff80c9baccea9dcd947f5b5c0a (patch)
tree4478115edd712ba382fce371ffa829add1dd3784 /src/widgets/styles/qstyle.cpp
parent8f52ad9fe084eee26869e4a94a678076845a6f58 (diff)
Introduce SH_TitleBar_ShowToolTipsOnButtons style hint
This removes some tight coupling between QMdiSubWindow and QMacStyle in order to allow the latter to be moved into a plugin. Change-Id: I090c2c5774279c0454486c3db2e77f00a646b145 Reviewed-by: Olivier Goffart (Woboq GmbH) <> Reviewed-by: Marc Mutz <> Reviewed-by: Gabriel de Dietrich <>
Diffstat (limited to 'src/widgets/styles/qstyle.cpp')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp
index 01d972af65..7b2ac49fa4 100644
--- a/src/widgets/styles/qstyle.cpp
+++ b/src/widgets/styles/qstyle.cpp
@@ -1987,6 +1987,11 @@ void QStyle::drawItemPixmap(QPainter *painter, const QRect &rect, int alignment,
by the style. Can be overridden with QAbstractItemView::setVerticalScrollMode() and
QAbstractItemView::setHorizontalScrollMode(). This enum value has been introduced in Qt 5.7.
+ \value SH_TitleBar_ShowToolTipsOnButtons
+ Determines if tool tips are shown on window title bar buttons.
+ The Mac style, for example, sets this to false.
+ This enum value has been introduced in Qt 5.10.
\sa styleHint()