--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/MixedView/main.cpp Wed Oct 20 12:55:41 2010 -0700
@@ -0,0 +1,39 @@
+#include <QtGui/QApplication>
+#include "mainwindow.h"
+
+// Needed Symbian specific headers
+#ifdef Q_OS_SYMBIAN
+#include <eikenv.h>
+#include <eikappui.h>
+#include <aknenv.h>
+#include <aknappui.h>
+#include <coeaui.h>
+#endif
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+
+
+
+
+ MainWindow w;
+ a.installEventFilter(&w);
+ w.setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
+
+ // Symbian specific code
+#ifdef Q_OS_SYMBIAN
+ CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
+ if(appUi){
+ TRAP_IGNORE( appUi->SetOrientationL( CAknAppUi::EAppUiOrientationPortrait ) );
+ }
+#endif
+
+#if defined(Q_WS_S60)
+ w.showMaximized();
+#else
+ w.show();
+#endif
+
+ return a.exec();
+}