Explorar o código

ctkPluginEvent can now be used in a QVariant.

Sascha Zelzer %!s(int64=14) %!d(string=hai) anos
pai
achega
661035cb4f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Libs/PluginFramework/ctkPluginEvent.h

+ 3 - 0
Libs/PluginFramework/ctkPluginEvent.h

@@ -24,6 +24,7 @@
 
 #include <QSharedDataPointer>
 #include <QSharedPointer>
+#include <QMetaType>
 
 #include "ctkPluginFrameworkExport.h"
 
@@ -201,6 +202,8 @@ public:
 
 };
 
+Q_DECLARE_METATYPE(ctkPluginEvent)
+
 CTK_PLUGINFW_EXPORT QDebug operator<<(QDebug debug, ctkPluginEvent::Type eventType);
 CTK_PLUGINFW_EXPORT QDebug operator<<(QDebug debug, const ctkPluginEvent& event);