Remove disabled code from QMainWindow autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 31 Oct 2011 05:31:39 +0000 (15:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 07:31:30 +0000 (08:31 +0100)
The removed code has been disabled since it was first added in October
2006.

Change-Id: I10243aa2979fd1615c919ec522d10d77d6527b3b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/widgets/qmainwindow/tst_qmainwindow.cpp

index 966f584..85bb481 100644 (file)
@@ -1539,15 +1539,6 @@ void tst_QMainWindow::saveRestore()
 
         mainWindow.layout()->setGeometry(mainWindow.rect());
         COMPARE_DOCK_WIDGET_GEOS(dockWidgetGeos, dockWidgetGeometries(&mainWindow));
-
-#if 0
-        QEventLoop eventLoop;
-        QPushButton quitButton("Quit", &centralWidget);
-        quitButton.setGeometry(0, 0, 100, 40);
-        connect(&quitButton, SIGNAL(clicked()), &eventLoop, SLOT(quit()));
-        quitButton.show();
-        eventLoop.exec();
-#endif
     }
 
     // restoreState() after show