summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp')
-rw-r--r--WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp b/WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp
index c992236..d991ab1 100644
--- a/WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp
+++ b/WebKit/qt/examples/platformplugin/WebNotificationPresenter.cpp
@@ -57,7 +57,11 @@ void WebNotificationWidget::showNotification(const QWebNotificationData* data)
bool WebNotificationWidget::event(QEvent* ev)
{
- if (ev->type() == QEvent::MouseButtonRelease || ev->type() == QEvent::Close) {
+ if (ev->type() == QEvent::MouseButtonRelease) {
+ emit notificationClicked();
+ return true;
+ }
+ if (ev->type() == QEvent::Close) {
emit notificationClosed();
return true;
}