Animations in library

This commit is contained in:
Chris Cochrun 2022-02-22 15:27:22 -06:00
parent fe48da06c8
commit d5515d4c52
10 changed files with 104 additions and 248 deletions

View file

@ -7,6 +7,7 @@ import QtMultimedia 5.15
import QtAudioEngine 1.15
import org.kde.kirigami 2.13 as Kirigami
import "./" as Presenter
import org.presenter 1.0
Controls.Page {
id: mainPage
@ -15,16 +16,18 @@ Controls.Page {
// properties passed around for the slides
property url imageBackground: ""
property url videoBackground: ""
property var song
property string songTitle: ""
property string songLyrics: ""
property string songAuthor: ""
property int blurRadius: 0
property ListView songList
property Item slideItem
property var song
property var draggedLibraryItem
signal songUpdated(string title, string lyrics, string author, string ccli, string audio)
Item {
id: mainItem
anchors.fill: parent
@ -83,7 +86,7 @@ Controls.Page {
title: "presentation-window"
height: maximumHeight
width: maximumWidth
screen: secondScreen
screen: screens[1].name
onClosing: presenting = false
Component.onCompleted: {
@ -135,4 +138,15 @@ Controls.Page {
}
}
SongSqlModel {
id: songsqlmodel
}
function updateLyrics(lyrics) {
showPassiveNotification("adding lyrics...")
songList.model.lyrics = lyrics;
showPassiveNotification("added lyrics:\n " + lyrics)
}
}