diff options
author | Timothy Pearson <[email protected]> | 2014-11-21 21:58:18 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-11-21 21:58:18 -0600 |
commit | b11ba445cccfa2cb9e5e6c09131d6e32c32392a6 (patch) | |
tree | b0d01710c17ce1441eafb9c963c0031d8aad1557 /src/widgets/qpopupmenu.cpp | |
parent | b5f543cd3ac21fbe8bf461de25a6216533453bb6 (diff) | |
download | qt3-b11ba445cccfa2cb9e5e6c09131d6e32c32392a6.tar.gz qt3-b11ba445cccfa2cb9e5e6c09131d6e32c32392a6.zip |
Properly polish QPopupMenu widgets
This relates to Bug 1489
Diffstat (limited to 'src/widgets/qpopupmenu.cpp')
-rw-r--r-- | src/widgets/qpopupmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/qpopupmenu.cpp b/src/widgets/qpopupmenu.cpp index 8821537..46e5220 100644 --- a/src/widgets/qpopupmenu.cpp +++ b/src/widgets/qpopupmenu.cpp @@ -1222,7 +1222,7 @@ QSize QPopupMenu::updateSize(bool force_update, bool do_resize) continue; int itemh = itemHeight( mi ); - + sz = style().sizeFromContents(QStyle::CT_PopupMenuItem, this, QSize(0, itemh), QStyleOption(mi,maxPMWidth)); sz = sz.expandedTo(QSize(itemw, sz.height())); @@ -1233,7 +1233,7 @@ QSize QPopupMenu::updateSize(bool force_update, bool do_resize) y = contentsRect().y(); x +=itemw; } - if ( mi->widget() ) + if ( mi->widget() ) mi->widget()->setGeometry( x, y, itemw, mi->widget()->height() ); y += itemh; } |