summaryrefslogtreecommitdiffstats
path: root/examples/network/ftp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/ftp/main.cpp')
-rw-r--r--examples/network/ftp/main.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/examples/network/ftp/main.cpp b/examples/network/ftp/main.cpp
index 8488dd0..978db0b 100644
--- a/examples/network/ftp/main.cpp
+++ b/examples/network/ftp/main.cpp
@@ -40,15 +40,28 @@
****************************************************************************/
#include <QApplication>
-
#include "ftpwindow.h"
+#ifdef Q_OS_SYMBIAN
+#include <QDir>
+#include <QDesktopWidget>
+#endif
+
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(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();
}