mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Set style of webview
This commit is contained in:
parent
4127ec8019
commit
df591f9ad7
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <QWebFrame>
|
||||
#include <QWebView>
|
||||
#include <QListWidget>
|
||||
#include <QStyleFactory>
|
||||
|
||||
#include "Application.h"
|
||||
#include "ui/DataWebPage.h"
|
||||
|
@ -46,6 +47,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid
|
|||
dockWidget->setFeatures(QDockWidget::DockWidgetMovable);
|
||||
|
||||
_webView = new QWebView(dockWidget);
|
||||
_webView->setStyle(QStyleFactory::create("fusion"));
|
||||
addEventBridgeToWindowObject();
|
||||
|
||||
dockWidget->setWidget(_webView);
|
||||
|
@ -64,6 +66,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid
|
|||
dialogWidget->setLayout(layout);
|
||||
|
||||
_webView = new QWebView(dialogWidget);
|
||||
_webView->setStyle(QStyleFactory::create("fusion"));
|
||||
|
||||
layout->addWidget(_webView);
|
||||
|
||||
|
|
Loading…
Reference in a new issue