diff options
Diffstat (limited to 'src/widgets/widgets/qmainwindow.cpp')
-rw-r--r-- | src/widgets/widgets/qmainwindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/widgets/widgets/qmainwindow.cpp b/src/widgets/widgets/qmainwindow.cpp index 271465ec00..c76d3cb445 100644 --- a/src/widgets/widgets/qmainwindow.cpp +++ b/src/widgets/widgets/qmainwindow.cpp @@ -51,7 +51,9 @@ #include <qapplication.h> #include <qmenubar.h> +#if QT_CONFIG(statusbar) #include <qstatusbar.h> +#endif #include <qevent.h> #include <qstyle.h> #include <qdebug.h> @@ -607,7 +609,7 @@ void QMainWindow::setMenuWidget(QWidget *menuBar) } #endif // QT_NO_MENUBAR -#ifndef QT_NO_STATUSBAR +#if QT_CONFIG(statusbar) /*! Returns the status bar for the main window. This function creates and returns an empty status bar if the status bar does not exist. @@ -644,7 +646,7 @@ void QMainWindow::setStatusBar(QStatusBar *statusbar) } d->layout->setStatusBar(statusbar); } -#endif // QT_NO_STATUSBAR +#endif // QT_CONFIG(statusbar) /*! Returns the central widget for the main window. This function @@ -1502,7 +1504,7 @@ bool QMainWindow::event(QEvent *event) #if QT_CONFIG(statustip) case QEvent::StatusTip: -#ifndef QT_NO_STATUSBAR +#if QT_CONFIG(statusbar) if (QStatusBar *sb = d->layout->statusBar()) sb->showMessage(static_cast<QStatusTipEvent*>(event)->tip()); else |