mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 09:29:55 +00:00
OAuthDialog: Use QWebEngine for Qt5
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user