diff -r 56cd8111b7f7 -r 41300fa6a67c tests/qtp/qtp_qftp/main.cpp --- a/tests/qtp/qtp_qftp/main.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/tests/qtp/qtp_qftp/main.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -40,28 +40,16 @@ ****************************************************************************/ #include +#include +#include #include "ftpwindow.h" +#include "autotest.h" + #ifdef Q_OS_SYMBIAN #include #include #endif -int main(int argc, char *argv[]) -{ - Q_INIT_RESOURCE(qtp_ftp); -#ifdef Q_OS_SYMBIAN - // Change current directory from default private to c:\data - // in order that user can access the downloaded content - QDir::setCurrent( "c:\\data" ); -#endif - QApplication app(argc, argv); - FtpWindow ftpWin; -#ifdef Q_OS_SYMBIAN - // Make application better looking and more usable on small screen - ftpWin.showMaximized(); -#else - ftpWin.show(); -#endif - return ftpWin.exec(); -} + +QTEST_MAIN(autoTest)