diff options
author | Sune Vuorela <sune@vuorela.dk> | 2013-09-16 23:54:21 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 11:54:13 +0200 |
commit | e24f75af4db89ebdfd3d48e9d007238a1b990cd2 (patch) | |
tree | a2cd5345e259fdd2ab8156ddfa02e7b929f3dbc7 /src/widgets/widgets/qmainwindow.h | |
parent | 938c838c1019a21f22c8f238852084969a3d0682 (diff) |
Implement QMainWindow::takeCentralWidget()
This allows the application developer to restructure the application,
including moving the central widget some place else.
Change-Id: Idca2f74c190500db24404e020b0eb400e41aad10
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qmainwindow.h')
-rw-r--r-- | src/widgets/widgets/qmainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmainwindow.h b/src/widgets/widgets/qmainwindow.h index d9edf711e0..8411bf9f6b 100644 --- a/src/widgets/widgets/qmainwindow.h +++ b/src/widgets/widgets/qmainwindow.h @@ -137,6 +137,8 @@ public: QWidget *centralWidget() const; void setCentralWidget(QWidget *widget); + QWidget *takeCentralWidget(); + #ifndef QT_NO_DOCKWIDGET void setCorner(Qt::Corner corner, Qt::DockWidgetArea area); Qt::DockWidgetArea corner(Qt::Corner corner) const; |