summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKirill Burtsev <kirill.burtsev@qt.io>2021-07-07 12:34:31 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-21 19:15:26 +0000
commitf30b288b17c875647c9cb219ebd25c2ed320e105 (patch)
tree7103626c8d4d86ba5e27d8059d65a541dd235dc0 /src
parent8e34d640525a16a6bc3764b17e22d5bc784687be (diff)
QWebEngineProfile: hide notificationPresenter method back from api
Change-Id: Ic9468cd078502fd5412da2374a2c814366dcf320 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit d79b3b4819bc0986a10b432a3e3f461017d310cc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/api/qwebengineprofile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/api/qwebengineprofile.h b/src/core/api/qwebengineprofile.h
index 1e5b84fc4..9e4b24050 100644
--- a/src/core/api/qwebengineprofile.h
+++ b/src/core/api/qwebengineprofile.h
@@ -134,7 +134,6 @@ public:
void setDownloadPath(const QString &path);
void setNotificationPresenter(std::function<void(std::unique_ptr<QWebEngineNotification>)> notificationPresenter);
- std::function<void(std::unique_ptr<QWebEngineNotification>)> notificationPresenter();
QWebEngineClientCertificateStore *clientCertificateStore();
@@ -151,6 +150,9 @@ private:
Q_DECLARE_PRIVATE(QWebEngineProfile)
QWebEngineProfile(QWebEngineProfilePrivate *, QObject *parent = nullptr);
+ friend class QWebEngineView;
+ std::function<void(std::unique_ptr<QWebEngineNotification>)> notificationPresenter();
+
friend class QWebEnginePagePrivate;
QScopedPointer<QWebEngineProfilePrivate> d_ptr;
};