Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -512,7 +512,7 @@ QDialog* WindowScriptingInterface::createForm(const QString& title, QScriptValue · 511 unmodified lines | |||
| 512 | } else if (item.property("options").isArray()) { | 512 | } else if (item.property("options").isArray()) { |
| 513 | QComboBox* combo = new QComboBox(); | 513 | QComboBox* combo = new QComboBox(); |
| 514 | combo->setMinimumWidth(200); | 514 | combo->setMinimumWidth(200); |
| 515 | qint32 options_count = item.property("options").property("length").toInt32();// .toJsonArray(); | 515 | qint32 options_count = item.property("options").property("length").toInt32(); |
| 516 | for (qint32 i = 0; i < options_count; i++) { | 516 | for (qint32 i = 0; i < options_count; i++) { |
| 517 | combo->addItem(item.property("options").property(i).toString()); | 517 | combo->addItem(item.property("options").property(i).toString()); |
| 518 | } | 518 | } |