1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Make sure breadcrumb items are always the right size

This commit is contained in:
Leo Franchi
2011-10-15 19:38:06 -04:00
parent 6606bd4185
commit 4fdec44755

View File

@@ -37,7 +37,7 @@ SiblingCrumbButton::SiblingCrumbButton(
: BreadcrumbButtonBase(parent), : BreadcrumbButtonBase(parent),
m_index(index), m_combo( new ComboBox(this) ) m_index(index), m_combo( new ComboBox(this) )
{ {
m_combo->setSizeAdjustPolicy( QComboBox::AdjustToContents );
setIndex(index); setIndex(index);
connect(m_combo, SIGNAL(activated(int)), SLOT(comboboxActivated(int))); connect(m_combo, SIGNAL(activated(int)), SLOT(comboboxActivated(int)));
} }
@@ -131,6 +131,7 @@ void SiblingCrumbButton::fillCombo()
m_combo->clear(); m_combo->clear();
m_combo->addItems(list); m_combo->addItems(list);
m_combo->setCurrentIndex( m_combo->findText(text())); m_combo->setCurrentIndex( m_combo->findText(text()));
m_combo->adjustSize();
} }
void SiblingCrumbButton::comboboxActivated(int i) void SiblingCrumbButton::comboboxActivated(int i)