diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-06-23 15:00:56 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-06-23 15:04:02 (GMT) |
commit | 4aed5d9130ec291c4897740085599b89f683a7e9 (patch) | |
tree | c5171d11189e0f6acd81f57a36d331c5aa478c4c /src/gui/styles/qwindowsxpstyle.cpp | |
parent | 48fe6dfaf0a52e8a0463fe3fd23015ea63d9d65a (diff) | |
download | Qt-4aed5d9130ec291c4897740085599b89f683a7e9.zip Qt-4aed5d9130ec291c4897740085599b89f683a7e9.tar.gz Qt-4aed5d9130ec291c4897740085599b89f683a7e9.tar.bz2 |
Reduced button height in standard dialogs on WindowsXP/Vista
This is somewhat related to task 254526. The height of buttons
on Vista/XP is a few pixels too tall in standard dialogs because
they incorrectly reserve space for a default frame which is
not used in these styles.
Reviewed-by: prasanth
Diffstat (limited to 'src/gui/styles/qwindowsxpstyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp index 09e5b93..b0eae1f 100644 --- a/src/gui/styles/qwindowsxpstyle.cpp +++ b/src/gui/styles/qwindowsxpstyle.cpp @@ -3358,6 +3358,10 @@ int QWindowsXPStyle::pixelMetric(PixelMetric pm, const QStyleOption *option, con res = 0; break; + case PM_ButtonDefaultIndicator: + res = 0; + break; + default: res = QWindowsStyle::pixelMetric(pm, option, widget); } |