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:
Artem Sokolovskii
2022-03-09 16:27:06 +01:00
parent 6f520f8783
commit b06db48869
8 changed files with 264 additions and 11 deletions

View File

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