diff -r 9b00ca3cc206 -r b78fa4cdbf2b example/DemoGUI/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example/DemoGUI/main.cpp Thu Aug 05 16:35:33 2010 +0530 @@ -0,0 +1,60 @@ +#include +#include "mainwindow.h" +#include +#include +#ifdef Q_OS_SYMBIAN +#include +#include +#include +#include +#endif + +void debugOutput(QtMsgType type, const char *msg) + { + QFile logFile("c://data//SmfLog.txt"); + Q_ASSERT(logFile.open( QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append )); + QTextStream stream(&logFile); + + switch (type) + { + case QtDebugMsg: + stream< (CEikonEnv::Static()->AppUi()); +TRAPD(error, +if (appUi) { // Lock application orientation into landscape +appUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait); +} +); +#endif + + + w.showFullScreen(); + return a.exec(); +}