cleaning up the new next action
This commit is contained in:
parent
c1410781c9
commit
420d521494
2 changed files with 7 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue