From f30b288b17c875647c9cb219ebd25c2ed320e105 Mon Sep 17 00:00:00 2001 From: Kirill Burtsev Date: Wed, 7 Jul 2021 12:34:31 +0200 Subject: QWebEngineProfile: hide notificationPresenter method back from api Change-Id: Ic9468cd078502fd5412da2374a2c814366dcf320 Reviewed-by: Michal Klocek (cherry picked from commit d79b3b4819bc0986a10b432a3e3f461017d310cc) Reviewed-by: Qt Cherry-pick Bot --- src/core/api/qwebengineprofile.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)> notificationPresenter); - std::function)> notificationPresenter(); QWebEngineClientCertificateStore *clientCertificateStore(); @@ -151,6 +150,9 @@ private: Q_DECLARE_PRIVATE(QWebEngineProfile) QWebEngineProfile(QWebEngineProfilePrivate *, QObject *parent = nullptr); + friend class QWebEngineView; + std::function)> notificationPresenter(); + friend class QWebEnginePagePrivate; QScopedPointer d_ptr; }; -- cgit v1.2.3