diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-21 13:15:58 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-21 13:29:34 +0000 |
commit | 94874bdf1ce54bd7574cb47b2adfad2386c85583 (patch) | |
tree | 8ee423c3906ca2861cab98b72496456bba50024c | |
parent | 598a4c46ed205d937695519fe04162d39e08a43e (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.cpp | 2 |
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())); |