Implement showFullScreen, showNormal, and showMaximized/Minimized in QWindow.
authorAlexis Menard <alexis.menard@openbossa.org>
Tue, 4 Oct 2011 13:09:34 +0000 (15:09 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 4 Oct 2011 13:22:36 +0000 (15:22 +0200)
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qwindow.cpp

index cda9cb9..489a749 100644 (file)
@@ -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()