WebView: Add missing Q_OBJECT macros
authorMichael Schuster <michael@schuster.ms>
Mon, 9 Mar 2020 01:53:24 +0000 (02:53 +0100)
committerMichael Schuster <michael@schuster.ms>
Wed, 11 Mar 2020 00:18:11 +0000 (01:18 +0100)
Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/wizard/webview.cpp

index 7b0bd17ed07b43236a2670e6db8d14992f41fb40..8c6d57c1af709fa1e8a7b6a77e7440e60b4ed6f7 100644 (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;