mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 13:07:50 +02:00
Increase initial width of the edit fields in JavaScript Window.form()
This commit is contained in:
parent
040254a119
commit
eecdc2dc7b
1 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,10 @@ QScriptValue WindowScriptingInterface::showForm(const QString& title, QScriptVal
|
|||
if (item.property("button").toString() != "") {
|
||||
cancelButton = cancelButton || item.property("button").toString().toLower() == "cancel";
|
||||
} else {
|
||||
edits.push_back(new QLineEdit(item.property("value").toString()));
|
||||
formLayout->addRow(item.property("label").toString(), edits.back());
|
||||
QLineEdit* edit = new QLineEdit(item.property("value").toString());
|
||||
edit->setMinimumWidth(200);
|
||||
edits.push_back(edit);
|
||||
formLayout->addRow(new QLabel(item.property("label").toString()), edit);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue