]> Some of my projects - aniplayer-old.git/commitdiff
- Declare meta-types for non-flag enums. This fixes the QMetaProperty::read: Unable...
authorAPTX <APTX@.(none)>
Wed, 16 Sep 2009 17:07:54 +0000 (19:07 +0200)
committerAPTX <APTX@.(none)>
Wed, 16 Sep 2009 17:07:54 +0000 (19:07 +0200)
lib/anidbudpclient/anidbudpclient_global.h

index 95c7fe4acfda9b0a8af0a87116089f6bed760631..9ccdeb1c7ab8d20ace52da62588ba946a39cd641 100644 (file)
@@ -2,6 +2,7 @@
 #define ANIDBUDPCLIENT_GLOBAL_H
 
 #include <QObject>
+#include <QMetaType>
 
 #define CLIENT_NAME "anidbudpclient"
 #define CLIENT_VERSION 0x000002
@@ -393,4 +394,10 @@ namespace AniDBUdpClient
        }
 }
 
+Q_DECLARE_METATYPE(AniDBUdpClient::Error);
+Q_DECLARE_METATYPE(AniDBUdpClient::IdlePolicy);
+Q_DECLARE_METATYPE(AniDBUdpClient::ReplyCode);
+Q_DECLARE_METATYPE(AniDBUdpClient::State);
+Q_DECLARE_METATYPE(AniDBUdpClient::FileState);
+
 #endif // ANIDBUDPCLIENT_GLOBAL_H