fixed the leftdock to allow reordering and better dnd

This commit is contained in:
Chris Cochrun 2022-04-11 11:03:20 -05:00
parent f14be71572
commit 8d07c7355d
7 changed files with 190 additions and 67 deletions

View file

@ -190,6 +190,7 @@ QStringList SongSqlModel::getLyricList(const int &row) {
// This first function pulls out each verse into our verses map
foreach (line, rawLyrics) {
qDebug() << line;
if (firstItem) {
if (keywords.contains(line)) {
recordVerse = true;
@ -213,6 +214,16 @@ QStringList SongSqlModel::getLyricList(const int &row) {
}
qDebug() << verses;
// let's check to see if there is a verse order, if not return the list given
if (vorder.first().isEmpty()) {
qDebug() << "NO VORDER";
foreach (verse, verses) {
qDebug() << verse;
lyrics.append(verse);
}
qDebug() << lyrics;
return lyrics;
}
// this function appends the verse that matches the verse order from the map
foreach (const QString &vstr, vorder) {
foreach (line, rawLyrics) {