register application as meta type

This commit is contained in:
Patrick von Reth 2014-02-14 16:06:28 +01:00
parent 131f0b2fd9
commit daa9a8e389
3 changed files with 5 additions and 0 deletions

View File

@ -114,6 +114,7 @@ private:
}; };
} }
Q_DECLARE_METATYPE(Snore::Application)
SNORE_EXPORT QDebug operator<< ( QDebug debug, const Snore::Application &app ); SNORE_EXPORT QDebug operator<< ( QDebug debug, const Snore::Application &app );

View File

@ -21,6 +21,8 @@
using namespace Snore; using namespace Snore;
int ApplicationData::applicationMetaID = qRegisterMetaType<Application>();
ApplicationData::ApplicationData(const QString &name, const Icon &icon): ApplicationData::ApplicationData(const QString &name, const Icon &icon):
m_name(name), m_name(name),
m_icon(icon) m_icon(icon)

View File

@ -37,6 +37,8 @@ public:
Icon m_icon; Icon m_icon;
QHash<QString,Alert> m_alerts; QHash<QString,Alert> m_alerts;
Hint m_hint; Hint m_hint;
static int applicationMetaID;
}; };
} }