summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2009-12-05 05:39:31 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2009-12-05 05:39:31 -0500
commitf6e7845dcc48e92dfe6748ab09909b6ed5f097c4 (patch)
tree2527337e0cd856e4134ea002c7861ad276beb153 /main.cpp
parentInitial commit. (diff)
downloadMessagePopper-master.tar.xz
MessagePopper-master.zip
Symbian additions.HEADmaster
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();
}