Kaynağa Gözat

ctkPluginEvent can now be used in a QVariant.

Sascha Zelzer 14 yıl önce
ebeveyn
işleme
661035cb4f
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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);