summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorA-Team <ateam@pad.test.qt.nokia.com>2010-10-20 22:00:14 (GMT)
committerA-Team <ateam@pad.test.qt.nokia.com>2010-10-20 22:00:14 (GMT)
commitdd97db856bc19d648d7faa3aac4e27576dcb2512 (patch)
tree0bb9fde945a0d3883e6fa3291f807c8827bbb48c /src/gui/widgets
parente4b0fe70c6435bb860df526d615dfdf53dfb5abd (diff)
parent80f031dfca7c161de4461514dfd8d9d664ea2f03 (diff)
downloadQt-dd97db856bc19d648d7faa3aac4e27576dcb2512.zip
Qt-dd97db856bc19d648d7faa3aac4e27576dcb2512.tar.gz
Qt-dd97db856bc19d648d7faa3aac4e27576dcb2512.tar.bz2
Merge branch '4.7-upstream' into 4.7-doc
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp
index d971f61..2731182 100644
--- a/src/gui/widgets/qmainwindow.cpp
+++ b/src/gui/widgets/qmainwindow.cpp
@@ -504,7 +504,7 @@ void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)
*/
QMenuBar *QMainWindow::menuBar() const
{
- QMenuBar *menuBar = qobject_cast<QMenuBar *>(d_func()->layout->menuBar());
+ QMenuBar *menuBar = qobject_cast<QMenuBar *>(layout()->menuBar());
if (!menuBar) {
QMainWindow *self = const_cast<QMainWindow *>(this);
menuBar = new QMenuBar(self);