diff --git a/TODO.org b/TODO.org index db9297a..3ae1053 100644 --- a/TODO.org +++ b/TODO.org @@ -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? diff --git a/src/qml/presenter/Library.qml b/src/qml/presenter/Library.qml index cb6b7b2..1607b08 100644 --- a/src/qml/presenter/Library.qml +++ b/src/qml/presenter/Library.qml @@ -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 } } diff --git a/src/songsqlmodel.cpp b/src/songsqlmodel.cpp index fd94159..0d105af 100644 --- a/src/songsqlmodel.cpp +++ b/src/songsqlmodel.cpp @@ -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(); }