From de4c9b3e31a1de7b3cff2ecbe97275b250e3a46b Mon Sep 17 00:00:00 2001 From: Alexis Menard Date: Tue, 4 Oct 2011 15:09:34 +0200 Subject: [PATCH] Implement showFullScreen, showNormal, and showMaximized/Minimized in QWindow. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The implementation was just missing to call the proper APIs. Merge-request: 65 Change-Id: I52f7825360bf55d37762421562484af684bf2dc8 Reviewed-on: http://codereview.qt-project.org/5986 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/gui/kernel/qwindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index cda9cb9ebc..489a7498f4 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -585,22 +585,27 @@ QAccessibleInterface *QWindow::accessibleRoot() const void QWindow::showMinimized() { - qDebug() << "unimplemented:" << __FILE__ << __LINE__; + setWindowState(Qt::WindowMinimized); + show(); } void QWindow::showMaximized() { - qDebug() << "unimplemented:" << __FILE__ << __LINE__; + setWindowState(Qt::WindowMaximized); + show(); } void QWindow::showFullScreen() { - qDebug() << "unimplemented:" << __FILE__ << __LINE__; + setWindowState(Qt::WindowFullScreen); + show(); + requestActivateWindow(); } void QWindow::showNormal() { - qDebug() << "unimplemented:" << __FILE__ << __LINE__; + setWindowState(Qt::WindowNoState); + show(); } bool QWindow::close()