cleaning up the new next action

This commit is contained in:
Chris Cochrun 2022-07-18 07:19:36 -05:00
parent c1410781c9
commit 420d521494
2 changed files with 7 additions and 39 deletions

View file

@ -200,21 +200,13 @@ bool Slide::next(QVariantMap nextItem)
return true;
}
if (m_type != "song") {
qDebug() << "nextslide current type is song";
// setText("");
// changeSlide(item);
}
if (m_type == "song") {
// since the string list is 0 indexed m_slideIndex actually
// maps to the next item.
int nextTextIndex = m_slideIndex;
qDebug() << nextTextIndex;
qDebug() << text[nextTextIndex];
setText(text[nextTextIndex]);
m_slideIndex++;
}
// since the string list is 0 indexed m_slideIndex actually
// maps to the next item.
int nextTextIndex = m_slideIndex;
qDebug() << nextTextIndex;
qDebug() << text[nextTextIndex];
setText(text[nextTextIndex]);
m_slideIndex++;
return false;
}