summaryrefslogtreecommitdiffstats
path: root/examples/declarative/demos/samegame/main.cpp
blob: d70b1d3d537d951ac1c23fb809346de96bfd8be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
    viewer.setMainQmlFile(QLatin1String("qml/qml/samegame.qml"));
    viewer.showExpanded();

    return app.exec();
}