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=44997996c58af35ea5f45b325e9b39d3d9518571;p=anidbudpclient.git - Declare meta-types for non-flag enums. This fixes the QMetaProperty::read: Unable to handle unregistered datatype... debug messages. --- diff --git a/anidbudpclient_global.h b/anidbudpclient_global.h index 95c7fe4..9ccdeb1 100644 --- a/anidbudpclient_global.h +++ b/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