Implement showFullScreen, showNormal, and showMaximized/Minimized in QWindow.

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>
bb10
Alexis Menard 2011-10-04 15:09:34 +02:00 committed by Qt by Nokia
parent 558ea0811a
commit de4c9b3e31
1 changed files with 9 additions and 4 deletions

View 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()