mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 00:33:36 -06:00
[sc9k] Swap song view and slide view, fix item lookup in song view
This commit is contained in:
parent
7ca3b810fc
commit
564ed77c9a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user