From 44997996c58af35ea5f45b325e9b39d3d9518571 Mon Sep 17 00:00:00 2001 From: APTX Date: Wed, 16 Sep 2009 19:07:54 +0200 Subject: [PATCH] - Declare meta-types for non-flag enums. This fixes the QMetaProperty::read: Unable to handle unregistered datatype... debug messages. --- anidbudpclient_global.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.52.0