Utils: Enhance resize shrinking behavior of the AbiWidget

Allow the first combobox to shrink below the length of the displayed
text: That information is repeated in the details anyway.

Change-Id: Iadb554cbd08a4a9a0a0d8060cbbedc8cdacb791a
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-04-21 13:15:58 +02:00
parent 598a4c46ed
commit 94874bdf1c

View File

@@ -82,6 +82,8 @@ AbiWidget::AbiWidget(QWidget *parent) :
layout->setSpacing(2);
d->m_abi = new QComboBox(this);
d->m_abi->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
d->m_abi->setMinimumContentsLength(4);
layout->addWidget(d->m_abi);
connect(d->m_abi, SIGNAL(currentIndexChanged(int)), this, SLOT(modeChanged()));