--- 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 <QApplication>
+#include <QtGui>
+#include <QtTest>
#include "ftpwindow.h"
+#include "autotest.h"
+
#ifdef Q_OS_SYMBIAN
#include <QDir>
#include <QDesktopWidget>
#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)