forked from qt-creator/qt-creator
Fix: QDS New Project dialog shows incorrect items in the screen size combobox
The index in the backend wizard's combobox was not loaded when initializing the QML combobox. Task-number: QDS-5523 Change-Id: I48583ff1ca85f840e9b7314a4e0ed734364c326a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -174,6 +174,15 @@ void WizardHandler::setScreenSizeIndex(int index)
|
||||
cbfield->selectRow(index);
|
||||
}
|
||||
|
||||
int WizardHandler::screenSizeIndex() const
|
||||
{
|
||||
auto *field = m_detailsPage->jsonField("ScreenFactor");
|
||||
auto *cbfield = dynamic_cast<ProjectExplorer::ComboBoxField *>(field);
|
||||
QTC_ASSERT(cbfield, return -1);
|
||||
|
||||
return cbfield->selectedRow();
|
||||
}
|
||||
|
||||
void WizardHandler::setTargetQtVersionIndex(int index)
|
||||
{
|
||||
auto *field = m_detailsPage->jsonField("TargetQtVersion");
|
||||
|
||||
Reference in New Issue
Block a user