summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/main.cpp b/main.cpp
index 4167e14..1b85031 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,15 +1,23 @@
#include <QApplication>
-#include <QHostAddress>
-
+#include <QDebug>
+#ifdef Q_OS_SYMBIAN
+#include "sym_iap_util.h"
+#endif
#include "MessageForm.h"
#include "MessageListener.h"
int main(int argc, char *argv[])
{
- QApplication app(argc, argv);
-
- MessageForm a;
- a.show();
-
- return app.exec();
+ QApplication app(argc, argv);
+
+ MessageForm a;
+#ifdef Q_OS_SYMBIAN
+ // Connect to IAP
+ qDebug() << qt_SetDefaultIap();
+ // Make application better looking and more usable on small screen
+ a.showMaximized();
+#else
+ a.show();
+#endif
+ return app.exec();
}