forked from qt-creator/qt-creator
Wizard: Improve QtQuick2 extension plugin
- Added options for Kit version - Added CMake support for Qt6.2 - Added options for creating example project, which uses the plugin Task-number: QTCREATORBUG-26982 Change-Id: I808c01bce6e4015a679f2fd69767c13179a25ee5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1265,7 +1265,11 @@ void ComboBoxField::initializeData(MacroExpander *expander)
|
||||
ListField::initializeData(expander);
|
||||
// refresh also the current text of the combobox
|
||||
auto w = qobject_cast<QComboBox *>(widget());
|
||||
w->setCurrentIndex(selectionModel()->currentIndex().row());
|
||||
const int row = selectionModel()->currentIndex().row();
|
||||
if (row < w->count() && row > 0)
|
||||
w->setCurrentIndex(row);
|
||||
else
|
||||
w->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
QVariant ComboBoxField::toSettings() const
|
||||
|
||||
Reference in New Issue
Block a user