summaryrefslogtreecommitdiffstats
path: root/src/s60main/qts60main.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-09-03 14:43:44 (GMT)
committeraxis <qt-info@nokia.com>2009-09-03 14:43:44 (GMT)
commit0adfe49f2deb1d6995753a23405317f91b487c51 (patch)
tree8bfcfca6e8a429a9690b704c4ba2456f6ac8645a /src/s60main/qts60main.cpp
parentf360180890298618ef3284c08789c2a243e1ba9d (diff)
parentc13b97f2f24d2ff2e62bedead5e3d50f8b992c1a (diff)
downloadQt-0adfe49f2deb1d6995753a23405317f91b487c51.zip
Qt-0adfe49f2deb1d6995753a23405317f91b487c51.tar.gz
Qt-0adfe49f2deb1d6995753a23405317f91b487c51.tar.bz2
Merge branch 'minimizeWrapperApp' into 4.6
Diffstat (limited to 'src/s60main/qts60main.cpp')
-rw-r--r--src/s60main/qts60main.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/s60main/qts60main.cpp b/src/s60main/qts60main.cpp
index bac8f3a..2b17b27 100644
--- a/src/s60main/qts60main.cpp
+++ b/src/s60main/qts60main.cpp
@@ -40,17 +40,10 @@
****************************************************************************/
// INCLUDE FILES
-#include <exception>
-#include <eikstart.h>
-#include "qts60mainapplication_p.h"
+#include <e32base.h>
+#include <qglobal.h>
-/**
- * factory function to create the QtS60Main application class
- */
-LOCAL_C CApaApplication* NewApplication()
-{
- return new CQtS60MainApplication;
-}
+GLDEF_C TInt QtMainWrapper();
/**
* A normal Symbian OS executable provides an E32Main() function which is
@@ -58,5 +51,10 @@ LOCAL_C CApaApplication* NewApplication()
*/
GLDEF_C TInt E32Main()
{
- return EikStart::RunApplication(NewApplication);
+ CTrapCleanup *cleanupStack = q_check_ptr(CTrapCleanup::New());
+ TInt err = 0;
+ TRAP(err, QtMainWrapper());
+ delete cleanupStack;
+
+ return err;
}