diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-10-17 20:54:22 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-10-17 20:54:22 +0200 |
commit | e8781ec2d43ec3f7f905e20fc76b1910e83ee0c8 (patch) | |
tree | 34a842fb825ecc14454ff044fc6af92e29b4ae10 /sowatchui/main.cpp | |
parent | e42e7dca8df8d1e4966545894e2dde228f19b6f0 (diff) | |
download | sowatch-e8781ec2d43ec3f7f905e20fc76b1910e83ee0c8.tar.gz sowatch-e8781ec2d43ec3f7f905e20fc76b1910e83ee0c8.zip |
Major change: sowatchd is now a QtM service
Diffstat (limited to 'sowatchui/main.cpp')
-rw-r--r-- | sowatchui/main.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sowatchui/main.cpp b/sowatchui/main.cpp new file mode 100644 index 0000000..54a65fa --- /dev/null +++ b/sowatchui/main.cpp @@ -0,0 +1,14 @@ +#include <QtGui/QApplication> +#include "qmlapplicationviewer.h" + +Q_DECL_EXPORT int main(int argc, char *argv[]) +{ + QScopedPointer<QApplication> app(createApplication(argc, argv)); + QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); + + viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); + viewer->setMainQmlFile(QLatin1String("qml/main.qml")); + viewer->showExpanded(); + + return app->exec(); +} |