summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginewidgets/api/qwebenginenotificationpresenter_p.h')
-rw-r--r--src/webenginewidgets/api/qwebenginenotificationpresenter_p.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h b/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
index a66dbc1b2..49d774806 100644
--- a/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
+++ b/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
@@ -54,6 +54,9 @@
#include <QtWebEngineCore/QWebEngineNotification>
#include <QtCore/QObject>
+#include <QtGui/QIcon>
+
+#include <memory>
QT_BEGIN_NAMESPACE
@@ -65,7 +68,7 @@ public:
DefaultNotificationPresenter(QObject *parent = nullptr);
virtual ~DefaultNotificationPresenter();
- void show(const QWebEngineNotification &notification);
+ void show(std::unique_ptr<QWebEngineNotification> notification);
private Q_SLOTS:
void messageClicked();
@@ -73,10 +76,11 @@ private Q_SLOTS:
private:
QSystemTrayIcon *m_systemTrayIcon;
- QWebEngineNotification m_activeNotification;
+ QIcon m_notificationIcon;
+ std::unique_ptr<QWebEngineNotification> m_activeNotification;
};
-void defaultNotificationPresenter(const QWebEngineNotification &notification);
+void defaultNotificationPresenter(std::unique_ptr<QWebEngineNotification> notification);
QT_END_NAMESPACE