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 );
|
SNORE_EXPORT QDebug operator<< ( QDebug debug, const Snore::Application &app );
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue