Przeglądaj źródła

ctkPluginEvent can now be used in a QVariant.

Sascha Zelzer 14 lat temu
rodzic
commit
661035cb4f
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Libs/PluginFramework/ctkPluginEvent.h

+ 3 - 0
Libs/PluginFramework/ctkPluginEvent.h

@@ -24,6 +24,7 @@
 
 
 #include <QSharedDataPointer>
 #include <QSharedDataPointer>
 #include <QSharedPointer>
 #include <QSharedPointer>
+#include <QMetaType>
 
 
 #include "ctkPluginFrameworkExport.h"
 #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, ctkPluginEvent::Type eventType);
 CTK_PLUGINFW_EXPORT QDebug operator<<(QDebug debug, const ctkPluginEvent& event);
 CTK_PLUGINFW_EXPORT QDebug operator<<(QDebug debug, const ctkPluginEvent& event);