forked from qt-creator/qt-creator
Fix missed item for 16-bit word width ABI
GCC compiler for 8-bit AVR architecture returns the define '__SIZEOF_SIZE_T__' with the value of 2. It means that the ABI's word width is 16-bit. But the ABI's combobox shows the 32-bit word width instead. The issue was in the missed 16-bit word width item in that combobox. Change-Id: Icf6accf6f233170c21254c43983167dbd1b59ded Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -140,10 +140,12 @@ AbiWidget::AbiWidget(QWidget *parent) : QWidget(parent),
|
||||
d->m_wordWidthComboBox = new QComboBox(this);
|
||||
layout->addWidget(d->m_wordWidthComboBox);
|
||||
|
||||
d->m_wordWidthComboBox->addItem(Abi::toString(16), 16);
|
||||
d->m_wordWidthComboBox->addItem(Abi::toString(32), 32);
|
||||
d->m_wordWidthComboBox->addItem(Abi::toString(64), 64);
|
||||
d->m_wordWidthComboBox->addItem(Abi::toString(0), 0);
|
||||
d->m_wordWidthComboBox->setCurrentIndex(2);
|
||||
// Setup current word width of 0 by default.
|
||||
d->m_wordWidthComboBox->setCurrentIndex(d->m_wordWidthComboBox->count() - 1);
|
||||
connect(d->m_wordWidthComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, &AbiWidget::customComboBoxesChanged);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user