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:
David Rowe 2015-07-24 10:43:24 -07:00
parent 939638a3a8
commit 3893add148

View file

@ -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);