diff options
-rw-r--r-- | src/kernel/qstyle.cpp | 2 | ||||
-rw-r--r-- | src/widgets/qpopupmenu.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/qstyle.cpp b/src/kernel/qstyle.cpp index 9960e1d33..4204c9941 100644 --- a/src/kernel/qstyle.cpp +++ b/src/kernel/qstyle.cpp @@ -783,7 +783,7 @@ void TQStyle::polish( TQPalette&) */ void TQStyle::polishPopupMenu( TQPopupMenu *pm ) { const TQStyleControlElementData &ceData = populateControlElementDataFromWidget(pm, TQStyleOption()); - unPolish(ceData, getControlElementFlagsForObject(pm, TQStyleOption()), pm); + polish(ceData, getControlElementFlagsForObject(pm, TQStyleOption()), pm); } /*! diff --git a/src/widgets/qpopupmenu.cpp b/src/widgets/qpopupmenu.cpp index 4b129e8e0..a851abb2a 100644 --- a/src/widgets/qpopupmenu.cpp +++ b/src/widgets/qpopupmenu.cpp @@ -1222,7 +1222,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) continue; int itemh = itemHeight( mi ); - + sz = style().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh), TQStyleOption(mi,maxPMWidth)); sz = sz.expandedTo(TQSize(itemw, sz.height())); @@ -1233,7 +1233,7 @@ TQSize TQPopupMenu::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; } |