diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-22 10:38:56 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-22 10:38:56 (GMT) |
commit | 1053d8564ca33e18a813e0f0fa1ec1f381e4a937 (patch) | |
tree | bbe54a98bae917cc00fce33bc0dda3993c82c31c /src/gui/styles/qwindowsxpstyle.cpp | |
parent | f74dd380f30306bb2cf93ef61bb35dc8db045a11 (diff) | |
download | Qt-1053d8564ca33e18a813e0f0fa1ec1f381e4a937.zip Qt-1053d8564ca33e18a813e0f0fa1ec1f381e4a937.tar.gz Qt-1053d8564ca33e18a813e0f0fa1ec1f381e4a937.tar.bz2 |
Fix broken drop-down arrows on Windows 7
This issue affects both tool buttons and buttosn
with menus. The problem is that the Windows metric
we were using to calculate the size changed on
Windows 7. It seems not to be the correct metric so it
seems more reliable to use the dpi-scaled constant 12 as we
were doing in common style already. This should make appearance
consistent between the windows versions.
Task-number: QTBUG-4241
Reviewed-by: denis
Diffstat (limited to 'src/gui/styles/qwindowsxpstyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp index ed2ee8a..1a9f4f2 100644 --- a/src/gui/styles/qwindowsxpstyle.cpp +++ b/src/gui/styles/qwindowsxpstyle.cpp @@ -3276,17 +3276,6 @@ int QWindowsXPStyle::pixelMetric(PixelMetric pm, const QStyleOption *option, con } break; - case PM_MenuButtonIndicator: - { - XPThemeData theme(widget, 0, QLatin1String("TOOLBAR"), TP_SPLITBUTTONDROPDOWN); - if (theme.isValid()) { - SIZE size; - pGetThemePartSize(theme.handle(), 0, theme.partId, theme.stateId, 0, TS_TRUE, &size); - res = size.cx; - } - } - break; - case PM_TitleBarHeight: { #ifdef QT3_SUPPORT |