mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
A little hack to force the second crumb to automatically expand.
This commit is contained in:
@@ -183,6 +183,9 @@ WhatsHotWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestDat
|
|||||||
KBreadcrumbSelectionModel *selectionModelLeft = new KBreadcrumbSelectionModel(new QItemSelectionModel(m_crumbModelLeft, this), this);
|
KBreadcrumbSelectionModel *selectionModelLeft = new KBreadcrumbSelectionModel(new QItemSelectionModel(m_crumbModelLeft, this), this);
|
||||||
ui->breadCrumbLeft->setSelectionModel(selectionModelLeft);
|
ui->breadCrumbLeft->setSelectionModel(selectionModelLeft);
|
||||||
ui->breadCrumbRight->setSelectionModel(selectionModelLeft);
|
ui->breadCrumbRight->setSelectionModel(selectionModelLeft);
|
||||||
|
//HACK ALERT - we want the second crumb to expand right away, so we
|
||||||
|
//force it here. We should find a more elegant want to do this
|
||||||
|
ui->breadCrumbLeft->currentChangedTriggered(m_crumbModelLeft->index(0,0).child(0,0));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case InfoSystem::InfoChartArtists:
|
case InfoSystem::InfoChartArtists:
|
||||||
|
Reference in New Issue
Block a user