diff -r a180113055cb -r 83d6a149c755 Tests/DemoGUI/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Tests/DemoGUI/main.cpp Mon Oct 11 21:59:54 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(); +}