mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Fix setting WebWindow's width and height
Width and height parameters now set the WebWindow's width and height instead of its minimum size, when not part of a tool window.
This commit is contained in:
parent
939638a3a8
commit
3893add148
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid
|
|||
} else {
|
||||
auto dialogWidget = new QDialog(Application::getInstance()->getWindow(), Qt::Window);
|
||||
dialogWidget->setWindowTitle(title);
|
||||
dialogWidget->setMinimumSize(width, height);
|
||||
dialogWidget->resize(width, height);
|
||||
connect(dialogWidget, &QDialog::finished, this, &WebWindowClass::hasClosed);
|
||||
|
||||
auto layout = new QVBoxLayout(dialogWidget);
|
||||
|
|
Loading…
Reference in a new issue