From 94874bdf1ce54bd7574cb47b2adfad2386c85583 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 21 Apr 2015 13:15:58 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/abiwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/projectexplorer/abiwidget.cpp b/src/plugins/projectexplorer/abiwidget.cpp index fa6dc06ac0f..c6745625e4a 100644 --- a/src/plugins/projectexplorer/abiwidget.cpp +++ b/src/plugins/projectexplorer/abiwidget.cpp @@ -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()));