aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-04-21 13:15:58 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-04-21 13:29:34 +0000
commit94874bdf1ce54bd7574cb47b2adfad2386c85583 (patch)
tree8ee423c3906ca2861cab98b72496456bba50024c
parent598a4c46ed205d937695519fe04162d39e08a43e (diff)
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>
-rw-r--r--src/plugins/projectexplorer/abiwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/abiwidget.cpp b/src/plugins/projectexplorer/abiwidget.cpp
index fa6dc06ac0..c6745625e4 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()));