tests/qtp/qtp_qftp/main.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    38 ** $QT_END_LICENSE$
    38 ** $QT_END_LICENSE$
    39 **
    39 **
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 
    41 
    42 #include <QApplication>
    42 #include <QApplication>
       
    43 #include <QtGui>
       
    44 #include <QtTest>
    43 #include "ftpwindow.h"
    45 #include "ftpwindow.h"
       
    46 #include "autotest.h"
       
    47 
    44 
    48 
    45 #ifdef Q_OS_SYMBIAN
    49 #ifdef Q_OS_SYMBIAN
    46 #include <QDir>
    50 #include <QDir>
    47 #include <QDesktopWidget>
    51 #include <QDesktopWidget>
    48 #endif
    52 #endif
    49 
    53 
    50 int main(int argc, char *argv[])
    54 
    51 {
    55 QTEST_MAIN(autoTest)
    52     Q_INIT_RESOURCE(qtp_ftp);
       
    53 #ifdef Q_OS_SYMBIAN
       
    54     // Change current directory from default private to c:\data
       
    55     // in order that user can access the downloaded content
       
    56     QDir::setCurrent( "c:\\data" );
       
    57 #endif
       
    58     QApplication app(argc, argv);
       
    59     FtpWindow ftpWin;
       
    60 #ifdef Q_OS_SYMBIAN
       
    61     // Make application better looking and more usable on small screen
       
    62     ftpWin.showMaximized();
       
    63 #else
       
    64     ftpWin.show();
       
    65 #endif
       
    66     return ftpWin.exec();
       
    67 }