forked from qt-creator/qt-creator
- Renaming the screen orientation enum and keys - Explicit constructors - Virtual destructors - Renamed some occurences of 'Qml' in comments to 'QML' - Adding descriptive comments to all generated files which should not be touched by the user. - Adding missing license headers to the qmljsdebugger sources Task-Number: QTCREATORBUG-2885 Reviewed-by: Friedemann Kleint Reviewed-by: dt
16 lines
442 B
C++
16 lines
442 B
C++
#include <QtGui/QApplication>
|
|
#include "qmlapplicationviewer.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QmlApplicationViewer viewer;
|
|
viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH
|
|
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); // ORIENTATION
|
|
viewer.setMainQmlFile(QLatin1String("qml/app/main.qml")); // MAINQML
|
|
viewer.show();
|
|
|
|
return app.exec();
|
|
}
|