mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
register application as meta type
This commit is contained in:
parent
131f0b2fd9
commit
daa9a8e389
@ -114,6 +114,7 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
Q_DECLARE_METATYPE(Snore::Application)
|
||||
|
||||
SNORE_EXPORT QDebug operator<< ( QDebug debug, const Snore::Application &app );
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
using namespace Snore;
|
||||
|
||||
int ApplicationData::applicationMetaID = qRegisterMetaType<Application>();
|
||||
|
||||
ApplicationData::ApplicationData(const QString &name, const Icon &icon):
|
||||
m_name(name),
|
||||
m_icon(icon)
|
||||
|
@ -37,6 +37,8 @@ public:
|
||||
Icon m_icon;
|
||||
QHash<QString,Alert> m_alerts;
|
||||
Hint m_hint;
|
||||
|
||||
static int applicationMetaID;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user