qmlplugindump: Explicitly add QSGMouseEvent to be dumped.
authorChristian Kamm <christian.d.kamm@nokia.com>
Thu, 6 Oct 2011 10:02:56 +0000 (12:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 10:19:43 +0000 (12:19 +0200)
Change-Id: I93f29f151e82a3d47fb10ff587fe28ea27a2d7b4
Reviewed-on: http://codereview.qt-project.org/6143
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>

tools/qmlplugindump/main.cpp

index 35e90cd..6eadb39 100644 (file)
@@ -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;