summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-06 10:51:56 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-06 10:53:47 (GMT)
commitfec575841b1caced96a2c2f2789e38afe73da3aa (patch)
treeafd2d523cf273f58a6f58c7205db440b25752123
parent00b8ac87e4f6bb8b185799cf9e01427c9975005c (diff)
downloadQt-fec575841b1caced96a2c2f2789e38afe73da3aa.zip
Qt-fec575841b1caced96a2c2f2789e38afe73da3aa.tar.gz
Qt-fec575841b1caced96a2c2f2789e38afe73da3aa.tar.bz2
QMenu could return wrong geometries for its actions
We needed to call ensurePolished before updating the action rects.
-rw-r--r--src/gui/widgets/qmenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp
index 05426a0..3b6743a 100644
--- a/src/gui/widgets/qmenu.cpp
+++ b/src/gui/widgets/qmenu.cpp
@@ -204,6 +204,8 @@ void QMenuPrivate::updateActionRects() const
Q_Q(const QMenu);
if (!itemsDirty)
return;
+
+ q->ensurePolished();
//let's reinitialize the buffer
actionRects.resize(actions.count());