diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-11-26 10:32:27 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-11-26 11:18:26 +0100 |
commit | e732b3c1022924e298a645ecbd7f41b9f1d71f21 (patch) | |
tree | 394048f87a2657f0297b210751cea390b553b774 /share/qtcreator/qml/qmldump | |
parent | fb3524af9056632595e00504a52d03327a41a6b1 (diff) | |
download | qt-creator-e732b3c1022924e298a645ecbd7f41b9f1d71f21.tar.gz |
QmlDump: Allow building and using with Simulator Qt >= 4.7.1.
Reviewed-by: owolff
Reviewed-by: Kai Koehne
Diffstat (limited to 'share/qtcreator/qml/qmldump')
-rw-r--r-- | share/qtcreator/qml/qmldump/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmldump/main.cpp b/share/qtcreator/qml/qmldump/main.cpp index 93f349c98b..46334c4d37 100644 --- a/share/qtcreator/qml/qmldump/main.cpp +++ b/share/qtcreator/qml/qmldump/main.cpp @@ -14,6 +14,9 @@ #include <QtDeclarative/private/qdeclarativemetatype_p.h> #include <QtDeclarative/private/qdeclarativeopenmetaobject_p.h> #include <QtDeclarative/QDeclarativeView> +#ifdef QT_SIMULATOR +#include <QtGui/private/qsimulatorconnection_p.h> +#endif static QHash<QByteArray, QList<const QDeclarativeType *> > qmlTypesByCppName; static QHash<QByteArray, QByteArray> cppToId; @@ -254,6 +257,9 @@ void writeEasingCurve(QXmlStreamWriter *xml) int main(int argc, char *argv[]) { +#ifdef QT_SIMULATOR + QtSimulatorPrivate::SimulatorConnection::createStubInstance(); +#endif QApplication app(argc, argv); if (argc != 1 && argc != 3) { |