Screens work and the beginnings of a settings module
This commit is contained in:
parent
9882a0a289
commit
fab9f86b41
6 changed files with 67 additions and 32 deletions
|
@ -28,12 +28,6 @@ Controls.Page {
|
|||
property var song
|
||||
property var draggedLibraryItem
|
||||
|
||||
signal songLyricsUpdated(string lyrics)
|
||||
|
||||
Component.onCompleted: {
|
||||
mainPage.songLyricsUpdated.connect(library.updateSongLyrics);
|
||||
}
|
||||
|
||||
Item {
|
||||
id: mainItem
|
||||
anchors.fill: parent
|
||||
|
@ -97,12 +91,13 @@ Controls.Page {
|
|||
title: "presentation-window"
|
||||
height: maximumHeight
|
||||
width: maximumWidth
|
||||
screen: screens[0]
|
||||
screen: presentationScreen
|
||||
flags: Qt.X11BypassWindowManagerHint
|
||||
onClosing: presenting = false
|
||||
|
||||
Component.onCompleted: {
|
||||
presentationWindow.showFullScreen();
|
||||
print(screens[1].name)
|
||||
print(screen.name);
|
||||
}
|
||||
|
||||
Presenter.Slide {
|
||||
|
@ -110,14 +105,14 @@ Controls.Page {
|
|||
anchors.fill: parent
|
||||
imageSource: imageBackground
|
||||
videoSource: videoBackground
|
||||
text: "good"
|
||||
text: ""
|
||||
|
||||
Component.onCompleted: slideItem = presentationSlide
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
FileDialog {
|
||||
id: videoFileDialog
|
||||
title: "Please choose a background"
|
||||
|
@ -205,6 +200,13 @@ Controls.Page {
|
|||
mainPageArea.pop(Controls.StackView.Immediate)
|
||||
}
|
||||
|
||||
function present(present) {
|
||||
if (present)
|
||||
presentationWindow.showFullScreen();
|
||||
else
|
||||
presentationWindow.close();
|
||||
}
|
||||
|
||||
function updateLyrics(lyrics) {
|
||||
songsqlmodel.updateLyrics(song, lyrics);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue