diff -r 56cd8111b7f7 -r 41300fa6a67c tests/qtp/qtp_masterdetail/main.cpp --- 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 #include - +#include #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)