diff options
Diffstat (limited to 'src/widgets')
-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; } |