Browse Source

ctkPluginEvent can now be used in a QVariant.

Sascha Zelzer 14 years ago
parent
commit
661035cb4f
1 changed files with 3 additions and 0 deletions
  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);