From d2fa5fd0f5b1972bd372510cc14509e85b972b23 Mon Sep 17 00:00:00 2001 From: Kirill Burtsev Date: Wed, 20 Mar 2019 18:04:50 +0100 Subject: Notification API cleanup Task-number: QTBUG-74543 Change-Id: Ice5a0dbfc3485c8b7e6fa900ef427a9aed871d42 Reviewed-by: Allan Sandfeld Jensen --- tests/quicktestbrowser/ApplicationRoot.qml | 2 +- tests/quicktestbrowser/BrowserWindow.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/quicktestbrowser') diff --git a/tests/quicktestbrowser/ApplicationRoot.qml b/tests/quicktestbrowser/ApplicationRoot.qml index e2248e350..a2e83e1e6 100644 --- a/tests/quicktestbrowser/ApplicationRoot.qml +++ b/tests/quicktestbrowser/ApplicationRoot.qml @@ -53,7 +53,7 @@ QtObject { var newWindow = browserWindowComponent.createObject(root) newWindow.currentWebView.profile = profile profile.downloadRequested.connect(newWindow.onDownloadRequested) - profile.userNotification.connect(newWindow.onUserNotification) + profile.presentNotification.connect(newWindow.onPresentNotification) return newWindow } function createDialog(profile) { diff --git a/tests/quicktestbrowser/BrowserWindow.qml b/tests/quicktestbrowser/BrowserWindow.qml index 381e9c142..6c3c160ac 100644 --- a/tests/quicktestbrowser/BrowserWindow.qml +++ b/tests/quicktestbrowser/BrowserWindow.qml @@ -511,7 +511,7 @@ ApplicationWindow { standardButtons: StandardButton.Ok } - function onUserNotification(notification) { + function onPresentNotification(notification) { notificationDialog.title = notification.title notificationDialog.text = notification.origin.toString() + '\n' + notification.message notificationDialog.open() -- cgit v1.2.3