--- a/tests/qtp/qtp_wiggly/main.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/tests/qtp/qtp_wiggly/main.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -40,22 +40,10 @@
****************************************************************************/
#include <QApplication>
-
+#include <QtGui>
+#include <QtTest>
#include "dialog.h"
+#include "autotest.h"
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
- bool smallScreen = false;
- for (int i=0; i<argc; i++)
- if (QString(argv[i]) == "-small-screen")
- smallScreen = true;
- Dialog dialog(0,smallScreen);
- if (!smallScreen){
- dialog.show();
- }
- else{
- dialog.showFullScreen();
- }
- return app.exec();
-}
+
+QTEST_MAIN(autoTest)