fix metatypes not registered for showguimessage invocation
This commit is contained in:
parent
96910ee97d
commit
4596dceb8f
@ -60,6 +60,8 @@ struct GuiMessage {
|
|||||||
QSystemTrayIcon::MessageIcon m_type;
|
QSystemTrayIcon::MessageIcon m_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(GuiMessage)
|
||||||
|
|
||||||
struct GuiMessageDestination {
|
struct GuiMessageDestination {
|
||||||
public:
|
public:
|
||||||
GuiMessageDestination(bool tray = true, bool message_box = false, bool status_bar = false)
|
GuiMessageDestination(bool tray = true, bool message_box = false, bool status_bar = false)
|
||||||
@ -70,6 +72,8 @@ struct GuiMessageDestination {
|
|||||||
bool m_statusBar;
|
bool m_statusBar;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(GuiMessageDestination)
|
||||||
|
|
||||||
struct GuiAction {
|
struct GuiAction {
|
||||||
public:
|
public:
|
||||||
GuiAction(QString title = {}, const std::function<void()>& action = nullptr)
|
GuiAction(QString title = {}, const std::function<void()>& action = nullptr)
|
||||||
@ -79,6 +83,8 @@ struct GuiAction {
|
|||||||
std::function<void()> m_action;
|
std::function<void()> m_action;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(GuiAction)
|
||||||
|
|
||||||
class RSSGUARD_DLLSPEC Application : public SingleApplication {
|
class RSSGUARD_DLLSPEC Application : public SingleApplication {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -75,4 +75,6 @@ class Notification {
|
|||||||
qreal m_volume;
|
qreal m_volume;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(Notification::Event)
|
||||||
|
|
||||||
#endif // NOTIFICATION_H
|
#endif // NOTIFICATION_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user