forked from qt-creator/qt-creator
Commitd687d11240unfortunately caused two severe regressions for MeeGo: QTCREATORBUG-6473: The application creates two QDeclarativeViews QTCREATORBUG-6490: QDView functions inaccessible. Existing apps broken This commit removes most ofd687d11240just leaving the boosted QApplication. Now, QmlApplicationViewer *is* again the QDeclarativeView. Change-Id: I219540353ff4dd1061221d6cbe69ce9a58500e91 Task-Id: QTCREATORBUG-6473 Task-Id: QTCREATORBUG-6490 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
16 lines
500 B
C++
16 lines
500 B
C++
#include <QtGui/QApplication>
|
|
#include "qmlapplicationviewer.h"
|
|
|
|
Q_DECL_EXPORT int main(int argc, char *argv[])
|
|
{
|
|
QScopedPointer<QApplication> app(createApplication(argc, argv));
|
|
|
|
QmlApplicationViewer viewer;
|
|
viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH
|
|
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); // ORIENTATION
|
|
viewer.setMainQmlFile(QLatin1String("qml/app/main.qml")); // MAINQML
|
|
viewer.showExpanded();
|
|
|
|
return app->exec();
|
|
}
|