1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01: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),
m_index(index), m_combo( new ComboBox(this) )
{
m_combo->setSizeAdjustPolicy( QComboBox::AdjustToContents );
setIndex(index);
connect(m_combo, SIGNAL(activated(int)), SLOT(comboboxActivated(int)));
}
@ -131,6 +131,7 @@ void SiblingCrumbButton::fillCombo()
m_combo->clear();
m_combo->addItems(list);
m_combo->setCurrentIndex( m_combo->findText(text()));
m_combo->adjustSize();
}
void SiblingCrumbButton::comboboxActivated(int i)