summaryrefslogtreecommitdiff
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-26 15:55:16 +0100
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-27 12:52:38 +0100
commit11b1ced7cdc2af028164381d43c146ec79919f19 (patch)
treeabefca8174d2ab470775b4631cd45e8b21f58dfc /src/gui/styles/qcommonstyle.cpp
parentbc49cbaab3356770eb4b27dcbc2e585bf21e9200 (diff)
downloadqt4-tools-11b1ced7cdc2af028164381d43c146ec79919f19.tar.gz
Do not hardecode the ToolBar Icon Size
So we correctly get the size from the platform plugin Reviewed-by: jbache
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
-rw-r--r--src/gui/styles/qcommonstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index 58865127f7..b8718421f7 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -4661,7 +4661,7 @@ int QCommonStyle::pixelMetric(PixelMetric m, const QStyleOption *opt, const QWid
case PM_ToolBarIconSize:
ret = qt_guiPlatformPlugin()->platformHint(QGuiPlatformPlugin::PH_ToolBarIconSize);
if (!ret)
- ret = proxy()->pixelMetric(PM_SmallIconSize, opt, widget);
+ ret = int(QStyleHelper::dpiScaled(24.));
break;
case PM_TabBarIconSize: