fixing bug in initial songs db, items not dragging ontop of screen

This commit is contained in:
Chris Cochrun 2022-04-07 15:20:33 -05:00
parent 332c41de1b
commit 036f83ecfe
3 changed files with 22 additions and 5 deletions

View file

@ -1,6 +1,11 @@
#+TITLE: Todo List
:PROPERTIES:
:CATEGORY: dev
:END:
* Inbox
** TODO BUG in dropping and then selecting song will duplicate entries
** TODO BUG in dropping and then selecting song will duplicate entries :dev:
SCHEDULED: <2022-04-05 Tue>
[[file:~/dev/church-presenter/src/qml/presenter/LeftDock.qml::Layout.fillHeight: true]]
or at least turns the entry above it into the same as itself while retaining it's title?

View file

@ -195,9 +195,14 @@ Item {
target: songListItem
x: x
y: y
width: width
height: height
}
ParentChange {
target: videoListItem
parent: rootApp.overlay
}
}
}
MouseArea {
@ -411,6 +416,12 @@ Item {
target: videoListItem
x: x
y: y
width: width
height: height
}
ParentChange {
target: videoListItem
parent: rootApp.overlay
}
}

View file

@ -44,17 +44,18 @@ static void createTable()
query.exec(
"INSERT INTO songs (title, lyrics, author, ccli, audio, vorder, "
"background, backgroundType) VALUES ('10,000 Reasons', '10,000 reasons "
"background, backgroundType, textAlignment) VALUES ('10,000 Reasons', '10,000 reasons "
"for my heart to sing', 'Matt Redman', '13470183', '', '', '', '', 'center')");
qDebug() << query.lastQuery();
query.exec("INSERT INTO songs (title, lyrics, author, ccli, audio, vorder, "
"background, backgroundType) VALUES ('River', 'Im going down to "
"background, backgroundType, textAlignment) VALUES ('River', 'Im going down to "
"the river', 'Jordan Feliz', '13470183', '', '', '', '', 'center')");
query.exec(
"INSERT INTO songs (title, lyrics, author, ccli, audio, vorder, "
"background, backgroundType) VALUES ('Marvelous Light', 'Into marvelous "
"background, backgroundType, textAlignment) VALUES ('Marvelous Light', 'Into marvelous "
"light Im running', 'Chris Tomlin', '13470183', '', '', '', '', 'center')");
qDebug() << query.lastQuery();
query.exec("select * from songs");
qDebug() << query.lastQuery();
}