mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Add a signal to tell the outside world when the crumb changed.
This commit is contained in:
@@ -308,6 +308,7 @@ void BreadcrumbBar::currentChangedTriggered(QModelIndex const& index)
|
|||||||
{
|
{
|
||||||
Q_ASSERT(m_selectionModel);
|
Q_ASSERT(m_selectionModel);
|
||||||
m_selectionModel->setCurrentIndex( index, QItemSelectionModel::SelectCurrent);
|
m_selectionModel->setCurrentIndex( index, QItemSelectionModel::SelectCurrent);
|
||||||
|
emit currentIndexChanged(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BreadcrumbBar::resizeEvent ( QResizeEvent * event )
|
void BreadcrumbBar::resizeEvent ( QResizeEvent * event )
|
||||||
|
@@ -131,6 +131,7 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void rootClicked();
|
void rootClicked();
|
||||||
|
void currentIndexChanged(QModelIndex);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user