summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-25 13:41:25 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-25 13:42:43 (GMT)
commit553fb1b2e636cf14a193b1ca15bd08f755a452b3 (patch)
treec9fa8aefd1479d76e2db2046b4093edbe737caff /src/gui
parentf4abd84cc63023eab6f666e841f66b9fa3d8be77 (diff)
downloadQt-553fb1b2e636cf14a193b1ca15bd08f755a452b3.zip
Qt-553fb1b2e636cf14a193b1ca15bd08f755a452b3.tar.gz
Qt-553fb1b2e636cf14a193b1ca15bd08f755a452b3.tar.bz2
QToolBar: fixed a typo that would make the handle wider.
Diffstat (limited to 'src/gui')
-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 24ff792..ed3bdb5 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -3197,7 +3197,7 @@ QRect QCommonStyle::subElementRect(SubElement sr, const QStyleOption *opt,
//have all the information we need (ie. the layout's margin)
const QToolBar *tb = qobject_cast<const QToolBar*>(widget);
const int margin = tb && tb->layout() ? tb->layout()->margin() : 2;
- const int handleExtent = pixelMetric(QStyle::PM_ToolBarExtensionExtent, opt, tb);
+ const int handleExtent = pixelMetric(QStyle::PM_ToolBarHandleExtent, opt, tb);
if (tbopt->state & QStyle::State_Horizontal) {
r = QRect(margin, margin, handleExtent, tbopt->rect.height() - 2*margin);
r = QStyle::visualRect(tbopt->direction, tbopt->rect, r);