OAuthDialog: Use QWebEngine for Qt5

This commit is contained in:
grauser
2015-10-01 18:33:06 +02:00
parent f1cc304f54
commit b911757d4f
3 changed files with 20 additions and 0 deletions

View File

@@ -46,7 +46,13 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site) :
layout->setContentsMargins(2,0,2,2);
setLayout(layout);
#if QT_VERSION < 0x050000
view = new QWebView();
#else
view = new QWebEngineView();
#endif
view->setContentsMargins(0,0,0,0);
view->page()->view()->setContentsMargins(0,0,0,0);
view->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);