summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_s60_p.h
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-09-22 11:48:38 (GMT)
committeraxis <qt-info@nokia.com>2009-09-23 14:06:36 (GMT)
commit77166549a95056a9e0ac78a1e2248c78406630a4 (patch)
treec8bf18cd8bac9c0dcd8a686f902a728487e78c81 /src/gui/kernel/qt_s60_p.h
parent4a157ee126fc482cd1954b80f22f790ec544e241 (diff)
downloadQt-77166549a95056a9e0ac78a1e2248c78406630a4.zip
Qt-77166549a95056a9e0ac78a1e2248c78406630a4.tar.gz
Qt-77166549a95056a9e0ac78a1e2248c78406630a4.tar.bz2
Added support for using custom application objects on S60.
With this patch, the application developer can use his own CEikApplication, CEikDocument and CEikAppUi classes with Qt, by deriving from QS60MainApplication, QSMainDocument and QS60MainAppUi, respectively. He can then register a factory function in the QApplication constructor to have his own objects created during the framework initialization. This patch also fixes some Qt code style issues. RevBy: Jason Barron RevBy: mread RevBy: Sami Merila RevBy: Shane Kearns
Diffstat (limited to 'src/gui/kernel/qt_s60_p.h')
-rw-r--r--src/gui/kernel/qt_s60_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_s60_p.h b/src/gui/kernel/qt_s60_p.h
index aa39f9d..9734d26 100644
--- a/src/gui/kernel/qt_s60_p.h
+++ b/src/gui/kernel/qt_s60_p.h
@@ -61,6 +61,7 @@
#include "QtGui/qimage.h"
#include "QtGui/qevent.h"
#include "qpointer.h"
+#include "qapplication.h"
#include <w32std.h>
#include <coecntrl.h>
#include <eikenv.h>
@@ -107,6 +108,7 @@ public:
int mouseInteractionEnabled : 1;
int virtualMouseRequired : 1;
int qtOwnsS60Environment : 1;
+ QApplication::QS60MainApplicationFactory s60ApplicationFactory; // typedef'ed pointer type
static inline void updateScreenSize();
static inline RWsSession& wsSession();
static inline RWindowGroup& windowGroup();