summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-26 14:55:16 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-27 11:52:38 (GMT)
commit11b1ced7cdc2af028164381d43c146ec79919f19 (patch)
treeabefca8174d2ab470775b4631cd45e8b21f58dfc /src/gui/styles/qcommonstyle.cpp
parentbc49cbaab3356770eb4b27dcbc2e585bf21e9200 (diff)
downloadQt-11b1ced7cdc2af028164381d43c146ec79919f19.zip
Qt-11b1ced7cdc2af028164381d43c146ec79919f19.tar.gz
Qt-11b1ced7cdc2af028164381d43c146ec79919f19.tar.bz2
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 5886512..b871842 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: