##// END OF EJS Templates
Make creator stop whining about changed generated files...
Miikka Heikkinen -
r2511:5947c46dff64
parent child
Show More
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlaxes/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlaxes/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlchart/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlchart/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlcustomizations/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlcustomizations/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 //viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 //viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlcustomlegend/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlcustomlegend/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -32,6 +32,7 Q_DECL_EXPORT int main(int argc, char *argv[])
32 {
32 {
33 QScopedPointer<QApplication> app(createApplication(argc, argv));
33 QScopedPointer<QApplication> app(createApplication(argc, argv));
34 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
34 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
35 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
35
36
36 // @uri QmlCustomModel
37 // @uri QmlCustomModel
37 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel",
38 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel",
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -28,6 +28,7 Q_DECL_EXPORT int main(int argc, char *argv[])
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
29
29
30 QmlApplicationViewer viewer;
30 QmlApplicationViewer viewer;
31 viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
31 // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
32 // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
32 viewer.setSource(QUrl("qrc:/qml/qmlf1legends/main.qml"));
33 viewer.setSource(QUrl("qrc:/qml/qmlf1legends/main.qml"));
33 viewer.setRenderHint(QPainter::Antialiasing, true);
34 viewer.setRenderHint(QPainter::Antialiasing, true);
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -27,6 +27,7 Q_DECL_EXPORT int main(int argc, char *argv[])
27 {
27 {
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
29 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
30 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
30
31
31 DataSource dataSource(viewer.data());
32 DataSource dataSource(viewer.data());
32 viewer->rootContext()->setContextProperty("dataSource", &dataSource);
33 viewer->rootContext()->setContextProperty("dataSource", &dataSource);
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlpolarchart/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlpolarchart/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -28,6 +28,7 Q_DECL_EXPORT int main(int argc, char *argv[])
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QApplication> app(createApplication(argc, argv));
29
29
30 QmlApplicationViewer viewer;
30 QmlApplicationViewer viewer;
31 viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
31 // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
32 // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
32 QString appKey;
33 QString appKey;
33 if (argc > 1) {
34 if (argc > 1) {
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -27,6 +27,7 int main(int argc, char *argv[])
27 QApplication app(argc, argv);
27 QApplication app(argc, argv);
28
28
29 QtQuick2ApplicationViewer viewer;
29 QtQuick2ApplicationViewer viewer;
30 viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
30 viewer.setSource(QUrl("qrc:/qml/quick2chart/main.qml"));
31 viewer.setSource(QUrl("qrc:/qml/quick2chart/main.qml"));
31 viewer.showExpanded();
32 viewer.showExpanded();
32
33
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent)
42 {
42 {
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
44 setResizeMode(QQuickView::SizeRootObjectToView);
44 setResizeMode(QQuickView::SizeRootObjectToView);
45 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
46 }
45 }
47
46
48 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
47 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
@@ -29,6 +29,7 int main(int argc, char *argv[])
29 QApplication app(argc, argv);
29 QApplication app(argc, argv);
30
30
31 QtQuick2ApplicationViewer viewer;
31 QtQuick2ApplicationViewer viewer;
32 viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
32
33
33 DataSource dataSource(&viewer);
34 DataSource dataSource(&viewer);
34 viewer.rootContext()->setContextProperty("dataSource", &dataSource);
35 viewer.rootContext()->setContextProperty("dataSource", &dataSource);
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent)
42 {
42 {
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
44 setResizeMode(QQuickView::SizeRootObjectToView);
44 setResizeMode(QQuickView::SizeRootObjectToView);
45 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
46 }
45 }
47
46
48 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
47 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlpiechart/main.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlpiechart/main.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlchartaxis/main.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlchartaxis/main.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -26,6 +26,7 Q_DECL_EXPORT int main(int argc, char *argv[])
26 {
26 {
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
27 QScopedPointer<QApplication> app(createApplication(argc, argv));
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
28 QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
29 viewer->addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
29
30
30 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 // // viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
31 viewer->setSource(QUrl("qrc:/qml/qmlchartproperties/loader.qml"));
32 viewer->setSource(QUrl("qrc:/qml/qmlchartproperties/loader.qml"));
@@ -93,7 +93,6 QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
93 new QmlJSDebugger::QDeclarativeViewObserver(this, this);
94 #endif
94 #endif
95 #endif
95 #endif
96 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QLatin1String("imports")));
97 }
96 }
98
97
99 QmlApplicationViewer::~QmlApplicationViewer()
98 QmlApplicationViewer::~QmlApplicationViewer()
@@ -27,6 +27,7 int main(int argc, char *argv[])
27 QApplication app(argc, argv);
27 QApplication app(argc, argv);
28
28
29 QtQuick2ApplicationViewer viewer;
29 QtQuick2ApplicationViewer viewer;
30 viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
30 viewer.setSource(QUrl("qrc:/qml/quick2chartproperties/main.qml"));
31 viewer.setSource(QUrl("qrc:/qml/quick2chartproperties/main.qml"));
31 viewer.showExpanded();
32 viewer.showExpanded();
32
33
@@ -42,7 +42,6 QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow *parent)
42 {
42 {
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
43 connect(engine(), SIGNAL(quit()), SLOT(close()));
44 setResizeMode(QQuickView::SizeRootObjectToView);
44 setResizeMode(QQuickView::SizeRootObjectToView);
45 addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(), QString::fromLatin1("qml")));
46 }
45 }
47
46
48 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
47 QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer()
General Comments 0
You need to be logged in to leave comments. Login now