diff --git a/src/librssguard/miscellaneous/application.h b/src/librssguard/miscellaneous/application.h index 3e0994a2a..dffe53254 100644 --- a/src/librssguard/miscellaneous/application.h +++ b/src/librssguard/miscellaneous/application.h @@ -60,6 +60,8 @@ struct GuiMessage { QSystemTrayIcon::MessageIcon m_type; }; +Q_DECLARE_METATYPE(GuiMessage) + struct GuiMessageDestination { public: GuiMessageDestination(bool tray = true, bool message_box = false, bool status_bar = false) @@ -70,6 +72,8 @@ struct GuiMessageDestination { bool m_statusBar; }; +Q_DECLARE_METATYPE(GuiMessageDestination) + struct GuiAction { public: GuiAction(QString title = {}, const std::function& action = nullptr) @@ -79,6 +83,8 @@ struct GuiAction { std::function m_action; }; +Q_DECLARE_METATYPE(GuiAction) + class RSSGUARD_DLLSPEC Application : public SingleApplication { Q_OBJECT diff --git a/src/librssguard/miscellaneous/notification.h b/src/librssguard/miscellaneous/notification.h index 443fe8da7..b9c1a9db6 100644 --- a/src/librssguard/miscellaneous/notification.h +++ b/src/librssguard/miscellaneous/notification.h @@ -75,4 +75,6 @@ class Notification { qreal m_volume; }; +Q_DECLARE_METATYPE(Notification::Event) + #endif // NOTIFICATION_H