Commit 8f94a004 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to implement load browser

parent 32f6e7da
......@@ -91,6 +91,21 @@ ArticleViewerWebEngine::~ArticleViewerWebEngine()
QWebEngineView *ArticleViewerWebEngine::createWindow(QWebEnginePage::WebWindowType type)
{
qDebug()<<" QWebEngineView *ArticleViewerWebEngine::createWindow(QWebEnginePage::WebWindowType type) not implemented yet" << type;
switch (type) {
case QWebEnginePage::WebBrowserWindow: {
if (!Settings::newWindowInTab()) {
WebEngineViewer::WebEngineView *view = new WebEngineViewer::WebEngineView();
view->setAttribute(Qt::WA_DeleteOnClose);
view->show();
return view;
}
}
case QWebEnginePage::WebDialog:
//TODO add in tab
case QWebEnginePage::WebBrowserTab:
default:
break;
}
return Q_NULLPTR;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment