Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -127,8 +127,10 @@ QScriptValue WindowScriptingInterface::showForm(const QString& title, QScriptVal · 126 unmodified lines | ||
| 127 | 127 | if (item.property("button").toString() != "") { |
| 128 | 128 | cancelButton = cancelButton || item.property("button").toString().toLower() == "cancel"; |
| 129 | 129 | } else { |
| 130 | − edits.push_back(new QLineEdit(item.property("value").toString())); | |
| 131 | − formLayout->addRow(item.property("label").toString(), edits.back()); | |
| 130 | + QLineEdit* edit = new QLineEdit(item.property("value").toString()); | |
| 131 | + edit->setMinimumWidth(200); | |
| 132 | + edits.push_back(edit); | |
| 133 | + formLayout->addRow(new QLabel(item.property("label").toString()), edit); | |
| 132 | 134 | } |
| 133 | 135 | } |
| 134 | 136 | |