Build fix on QMenuBar
authorThierry Bastian <thierry.bastian@nokia.com>
Thu, 14 Apr 2011 12:12:56 +0000 (14:12 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:47 +0000 (12:54 +0200)
Reviewed-By: gabi
Merge-Request: 916
(cherry picked from commit ea585d567bf0970c57e31846da044295d80774ba)

src/gui/widgets/qmenubar.cpp
src/gui/widgets/qmenubarimpl.cpp

index 357c0fa..a968404 100644 (file)
@@ -441,7 +441,7 @@ void QMenuBarPrivate::calcActionRects(int max_width, int start) const
         QSize sz;
 
         //calc what I think the size is..
-        i f(action->isSeparator()) {
+        i(action->isSeparator()) {
             if (style->styleHint(QStyle::SH_DrawMenuBarSeparator, 0, q))
                 separator = i;
             continue; //we don't really position these!
index d402507..db10c72 100644 (file)
@@ -120,12 +120,10 @@ void QMenuBarImpl::actionEvent(QActionEvent *e)
 
 void QMenuBarImpl::handleReparent(QWidget *oldParent, QWidget *newParent, QWidget *oldWindow, QWidget *newWindow)
 {
-#ifdef Q_WS_X11
     Q_UNUSED(oldParent)
     Q_UNUSED(newParent)
     Q_UNUSED(oldWindow)
     Q_UNUSED(newWindow)
-#endif
 
 #ifdef Q_WS_MAC
     if (isNativeMenuBar() && !macWidgetHasNativeMenubar(newParent)) {