tests/qtp/qtp_svgviewer/main.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
--- a/tests/qtp/qtp_svgviewer/main.cpp	Tue Jan 26 12:42:25 2010 +0200
+++ b/tests/qtp/qtp_svgviewer/main.cpp	Tue Feb 02 00:43:10 2010 +0200
@@ -41,23 +41,14 @@
 
 #include <QApplication>
 #include <QString>
+#include <QtGui>
+#include <QtTest>
+
 #ifndef QT_NO_OPENGL
 #include <QGLFormat>
 #endif
 
 #include "mainwindow.h"
-
-int main(int argc, char **argv)
-{
-    Q_INIT_RESOURCE(qtp_svgviewer);
-
-    QApplication app(argc, argv);
+#include "autotest.h"
 
-    MainWindow window;
-    if (argc == 2)
-        window.openFile(argv[1]);
-    else
-        window.openFile(":/files/bubbles.svg");
-    window.show();
-    return app.exec();
-}
+QTEST_MAIN(autoTest)