WebView: Add missing Q_OBJECT macros

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-03-09 02:53:24 +01:00
parent 37f9e62993
commit 102369bfbe
No known key found for this signature in database
GPG Key ID: 00819E3BF4177B28
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Q_SIGNALS:
};
class WebEnginePage : public QWebEnginePage {
Q_OBJECT
public:
WebEnginePage(QWebEngineProfile *profile, QObject* parent = nullptr);
QWebEnginePage * createWindow(QWebEnginePage::WebWindowType type) override;
@ -58,6 +59,7 @@ private:
// We need a separate class here, since we cannot simply return the same WebEnginePage object
// this leads to a strage segfault somewhere deep inside of the QWebEngine code
class ExternalWebEnginePage : public QWebEnginePage {
Q_OBJECT
public:
ExternalWebEnginePage(QWebEngineProfile *profile, QObject* parent = nullptr);
bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override;