mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-04 11:17:31 +01:00
fix metatypes not registered for showguimessage invocation
This commit is contained in:
parent
4596dceb8f
commit
3c85ff8d12
@ -52,6 +52,7 @@ struct ITaskbarList4;
|
||||
|
||||
struct GuiMessage {
|
||||
public:
|
||||
GuiMessage() {}
|
||||
GuiMessage(QString title, QString message, QSystemTrayIcon::MessageIcon type)
|
||||
: m_title(std::move(title)), m_message(std::move(message)), m_type(type) {}
|
||||
|
||||
@ -64,6 +65,7 @@ Q_DECLARE_METATYPE(GuiMessage)
|
||||
|
||||
struct GuiMessageDestination {
|
||||
public:
|
||||
GuiMessageDestination() {}
|
||||
GuiMessageDestination(bool tray = true, bool message_box = false, bool status_bar = false)
|
||||
: m_tray(tray), m_messageBox(message_box), m_statusBar(status_bar) {}
|
||||
|
||||
@ -76,6 +78,7 @@ Q_DECLARE_METATYPE(GuiMessageDestination)
|
||||
|
||||
struct GuiAction {
|
||||
public:
|
||||
GuiAction() {}
|
||||
GuiAction(QString title = {}, const std::function<void()>& action = nullptr)
|
||||
: m_title(std::move(title)), m_action(action) {}
|
||||
|
||||
|
@ -148,7 +148,7 @@ QString Notification::nameForEvent(Notification::Event event) {
|
||||
return QObject::tr("Node.js - package(s) updated");
|
||||
|
||||
case Notification::Event::NodePackageFailedToUpdate:
|
||||
return QObject::tr("Node.js - package(s) failed to updated");
|
||||
return QObject::tr("Node.js - package(s) failed to update");
|
||||
|
||||
default:
|
||||
return QObject::tr("Unknown event");
|
||||
|
Loading…
x
Reference in New Issue
Block a user