Forráskód Böngészése

QVariant is not a metatype in Qt < 4.7.0

It needs to be set manually
More info, see https://bugreports.qt.nokia.com/browse/QTBUG-8549
Julien Finet 13 éve
szülő
commit
46644b96dd
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      Libs/Widgets/Testing/Cpp/ctkFlatProxyModelTest.cpp

+ 4 - 0
Libs/Widgets/Testing/Cpp/ctkFlatProxyModelTest.cpp

@@ -32,6 +32,10 @@
 #include "ctkModelTester.h"
 #include "ctkTest.h"
 
+#if QT_VERSION < 0x040700
+Q_DECLARE_METATYPE(QVariant)
+#endif
+
 // ----------------------------------------------------------------------------
 class ctkFlatProxyModelTester: public QObject
 {