From: APTX Date: Wed, 16 Sep 2009 17:07:54 +0000 (+0200) Subject: - Declare meta-types for non-flag enums. This fixes the QMetaProperty::read: Unable... X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=0585d814c3e6acdfa22628f51125587fc52c9dde;p=aniplayer-old.git - Declare meta-types for non-flag enums. This fixes the QMetaProperty::read: Unable to handle unregistered datatype... debug messages. --- diff --git a/lib/anidbudpclient/anidbudpclient_global.h b/lib/anidbudpclient/anidbudpclient_global.h index 95c7fe4..9ccdeb1 100644 --- a/lib/anidbudpclient/anidbudpclient_global.h +++ b/lib/anidbudpclient/anidbudpclient_global.h @@ -2,6 +2,7 @@ #define ANIDBUDPCLIENT_GLOBAL_H #include +#include #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