summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-10 07:11:06 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-10 07:11:06 (GMT)
commitbabf02527b6af13a5ee6a41d18f2fdc67415fce8 (patch)
tree6b4c75fb7b20e19f070a499c67bfdc5975e4861e
parent0a5b1da3e5556da49de13c6d9f12d8129bd5b797 (diff)
Fix open url in current webengineview
-rw-r--r--src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp9
-rw-r--r--src/ksieveui/editor/webengine/sieveeditorwebengineview.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
index 58d4ea0..846b77f 100644
--- a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
+++ b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
@@ -122,3 +122,12 @@ void SieveEditorWebEngineView::contextMenuEvent(QContextMenuEvent *ev)
menu.exec(ev->globalPos());
}
+QWebEngineView *SieveEditorWebEngineView::createWindow(QWebEnginePage::WebWindowType type)
+{
+ Q_UNUSED(type);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
+ return this;
+#else
+ return Q_NULLPTR;
+#endif
+}
diff --git a/src/ksieveui/editor/webengine/sieveeditorwebengineview.h b/src/ksieveui/editor/webengine/sieveeditorwebengineview.h
index 50c1cbc..0c516e1 100644
--- a/src/ksieveui/editor/webengine/sieveeditorwebengineview.h
+++ b/src/ksieveui/editor/webengine/sieveeditorwebengineview.h
@@ -31,6 +31,7 @@ public:
protected:
void contextMenuEvent(QContextMenuEvent *ev) Q_DECL_OVERRIDE;
+ QWebEngineView *createWindow(QWebEnginePage::WebWindowType type) Q_DECL_OVERRIDE;
private:
void downloadRequested(QWebEngineDownloadItem *);
};