diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-06 10:51:56 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-06 10:53:47 (GMT) |
commit | fec575841b1caced96a2c2f2789e38afe73da3aa (patch) | |
tree | afd2d523cf273f58a6f58c7205db440b25752123 | |
parent | 00b8ac87e4f6bb8b185799cf9e01427c9975005c (diff) | |
download | Qt-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.cpp | 2 |
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()); |