Skip to content
Snippets Groups Projects
Commit 6bc11283 authored by hjk's avatar hjk
Browse files

qmlapplicationviewer: move platform-dependent code out of sight.

parent 1551faa6
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,7 @@ int main(int argc, char *argv[])
viewer.setOrientation(QmlApplicationViewer::Auto); // ORIENTATION
viewer.setMainQmlFile(QLatin1String("qml/app/app.qml")); // MAINQML
viewer.setLoadDummyData(false); // LOADDUMMYDATA
#ifdef Q_OS_SYMBIAN
viewer.showFullScreen();
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
viewer.showMaximized();
#else
viewer.show();
#endif
return app.exec();
}
......@@ -128,3 +128,14 @@ void QmlApplicationViewer::setLoadDummyData(bool loadDummyData)
}
}
}
void QmlApplicationViewer::show()
{
#ifdef Q_OS_SYMBIAN
showFullScreen();
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
showMaximized();
#else
QDeclarativeView::show();
#endif
}
......@@ -19,6 +19,7 @@ public:
void addImportPath(const QString &path);
void setOrientation(Orientation orientation);
void setLoadDummyData(bool loadDummyData);
void show();
private:
class QmlApplicationViewerPrivate *m_d;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment