[sc9k] Swap song view and slide view, fix item lookup in song view

This commit is contained in:
Gary Talent 2022-07-24 08:56:17 -05:00
parent 7ca3b810fc
commit 564ed77c9a

View File

@ -29,8 +29,8 @@ SlideView::SlideView(QWidget *parent): QWidget(parent) {
#ifndef _WIN32 #ifndef _WIN32
m_slideTable->setAlternatingRowColors(true); m_slideTable->setAlternatingRowColors(true);
#endif #endif
lyt->addWidget(m_songSelector);
lyt->addWidget(m_slideTable); lyt->addWidget(m_slideTable);
lyt->addWidget(m_songSelector);
connect(m_slideTable, &QTableWidget::currentCellChanged, this, &SlideView::slideChanged); connect(m_slideTable, &QTableWidget::currentCellChanged, this, &SlideView::slideChanged);
} }
@ -44,7 +44,7 @@ QString SlideView::getNextSong() const {
} }
void SlideView::pollUpdate(QString songName, int slide) { void SlideView::pollUpdate(QString songName, int slide) {
auto songItems = m_songSelector->findItems(songName, Qt::MatchExactly); auto songItems = m_songSelector->findItems(songName, Qt::MatchCaseSensitive);
if (songItems.size() < 1) { if (songItems.size() < 1) {
return; return;
} }