mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 21:43:07 +02:00
Add layout to WebWindowClass to that it maximizes the webview
This commit is contained in:
parent
1193d86d7b
commit
9d5c0cf4e3
1 changed files with 7 additions and 0 deletions
|
@ -57,7 +57,14 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid
|
|||
_windowWidget = new QWidget(Application::getInstance()->getWindow(), Qt::Window);
|
||||
_windowWidget->setMinimumSize(width, height);
|
||||
|
||||
auto layout = new QVBoxLayout(_windowWidget);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
_windowWidget->setLayout(layout);
|
||||
|
||||
_webView = new QWebView(_windowWidget);
|
||||
|
||||
layout->addWidget(_webView);
|
||||
|
||||
addEventBridgeToWindowObject();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue