summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-10-06 12:02:56 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-06 12:19:43 +0200
commit121c32b54a5d06dee38d45825d483199facf113c (patch)
treeb39840adc3b546c23b98052d64e5df070380561e /tools
parentab989615c05bbf15ef7f5b91d3daaf2423a490ea (diff)
qmlplugindump: Explicitly add QSGMouseEvent to be dumped.
Change-Id: I93f29f151e82a3d47fb10ff587fe28ea27a2d7b4 Reviewed-on: http://codereview.qt-project.org/6143 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlplugindump/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index 35e90cd3d4..6eadb39869 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -42,6 +42,9 @@
#include <QtDeclarative/QtDeclarative>
#include <QtDeclarative/private/qdeclarativemetatype_p.h>
#include <QtDeclarative/private/qdeclarativeopenmetaobject_p.h>
+#include <QtDeclarative/private/qsgevents_p_p.h>
+#include <QtDeclarative/private/qsgdragtarget_p.h>
+#include <QtDeclarative/private/qsgpincharea_p.h>
#include <QtWidgets/QApplication>
@@ -570,6 +573,10 @@ int main(int argc, char *argv[])
QSet<const QMetaObject *> defaultReachable = collectReachableMetaObjects();
QList<QDeclarativeType *> defaultTypes = QDeclarativeMetaType::qmlTypes();
+ // add some otherwise unreachable QMetaObjects
+ defaultReachable.insert(&QSGMouseEvent::staticMetaObject);
+ // QSGKeyEvent, QSGPinchEvent, QSGDragTargetEvent are not exported
+
// this will hold the meta objects we want to dump information of
QSet<const QMetaObject *> metas;