diff options
Diffstat (limited to 'src/webengine/webpage.cpp')
-rw-r--r-- | src/webengine/webpage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp index a39c942..96ae040 100644 --- a/src/webengine/webpage.cpp +++ b/src/webengine/webpage.cpp @@ -8,9 +8,19 @@ #include "webpage.h" +#include <QWebEngineFullScreenRequest> + WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) : QWebEnginePage(profile, parent) { + connect(this, &WebPage::fullScreenRequested, this, [](QWebEngineFullScreenRequest request) { + request.accept(); + }); +#ifdef QT_DEBUG + connect(this, &WebPage::featurePermissionRequested, this, [](const QUrl &securityOrigin, QWebEnginePage::Feature feature) { + qDebug("Feature requested: %i", feature); + }); +#endif } bool WebPage::certificateError(const QWebEngineCertificateError &certificateError) |