--- a/tests/qtp/qtp_masterdetail/main.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/tests/qtp/qtp_masterdetail/main.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -39,22 +39,12 @@
**
****************************************************************************/
+#include <QApplication>
#include <QtGui>
-
+#include <QtTest>
#include "database.h"
#include "mainwindow.h"
-
-int main(int argc, char *argv[])
-{
- Q_INIT_RESOURCE(qtp_masterdetail);
-
- QApplication app(argc, argv);
+#include "autotest.h"
- if (!createConnection())
- return 1;
- QFile *albumDetails = new QFile("albumdetails.xml");
- MainWindow window("artists", "albums", albumDetails);
- window.show();
- return app.exec();
-}
+QTEST_MAIN(autoTest)