forked from qt-creator/qt-creator
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:
@@ -82,6 +82,8 @@ AbiWidget::AbiWidget(QWidget *parent) :
|
|||||||
layout->setSpacing(2);
|
layout->setSpacing(2);
|
||||||
|
|
||||||
d->m_abi = new QComboBox(this);
|
d->m_abi = new QComboBox(this);
|
||||||
|
d->m_abi->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
|
||||||
|
d->m_abi->setMinimumContentsLength(4);
|
||||||
layout->addWidget(d->m_abi);
|
layout->addWidget(d->m_abi);
|
||||||
connect(d->m_abi, SIGNAL(currentIndexChanged(int)), this, SLOT(modeChanged()));
|
connect(d->m_abi, SIGNAL(currentIndexChanged(int)), this, SLOT(modeChanged()));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user