fixed the filepicker dialog and started a window file
This commit is contained in:
parent
7545f05724
commit
366660dcb2
7 changed files with 71 additions and 48 deletions
|
@ -108,7 +108,12 @@ ColumnLayout {
|
|||
anchors.fill: parent
|
||||
listItem: serviceItem
|
||||
listView: serviceItemList
|
||||
onMoveRequested: serviceItemModel.move(oldIndex, newIndex)
|
||||
onMoveRequested: {
|
||||
print(oldIndex, newIndex);
|
||||
serviceItemModel.move(oldIndex, newIndex);
|
||||
}
|
||||
onDropped: {
|
||||
}
|
||||
onClicked: {
|
||||
serviceItemList.currentIndex = index;
|
||||
changeServiceItem(index);
|
||||
|
|
|
@ -90,35 +90,7 @@ Controls.Page {
|
|||
Loader {
|
||||
id: presentLoader
|
||||
active: presenting
|
||||
sourceComponent: presentWindowComp
|
||||
}
|
||||
|
||||
Component {
|
||||
id: presentWindowComp
|
||||
Window {
|
||||
id: presentationWindow
|
||||
title: "presentation-window"
|
||||
height: maximumHeight
|
||||
width: maximumWidth
|
||||
screen: presentationScreen
|
||||
flags: Qt.X11BypassWindowManagerHint
|
||||
onClosing: presenting = false
|
||||
|
||||
Component.onCompleted: {
|
||||
presentationWindow.showFullScreen();
|
||||
print(screen.name);
|
||||
}
|
||||
|
||||
Presenter.Slide {
|
||||
id: presentationSlide
|
||||
anchors.fill: parent
|
||||
imageSource: imageBackground
|
||||
videoSource: videoBackground
|
||||
text: ""
|
||||
|
||||
Component.onCompleted: slideItem = presentationSlide
|
||||
}
|
||||
}
|
||||
source: "PresentationWindow.qml"
|
||||
}
|
||||
|
||||
SongSqlModel {
|
||||
|
|
33
src/qml/presenter/PresentationWindow.qml
Normal file
33
src/qml/presenter/PresentationWindow.qml
Normal file
|
@ -0,0 +1,33 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Window 2.13
|
||||
import QtQuick.Layouts 1.2
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
import "./" as Presenter
|
||||
import org.presenter 1.0
|
||||
|
||||
Window {
|
||||
id: presentationWindow
|
||||
title: "presentation-window"
|
||||
height: maximumHeight
|
||||
width: maximumWidth
|
||||
screen: presentationScreen
|
||||
/* flags: Qt.X11BypassWindowManagerHint */
|
||||
onClosing: presenting = false
|
||||
|
||||
Component.onCompleted: {
|
||||
presentationWindow.showFullScreen();
|
||||
print(screen.name);
|
||||
}
|
||||
|
||||
Presenter.Slide {
|
||||
id: presentationSlide
|
||||
anchors.fill: parent
|
||||
imageSource: imageBackground
|
||||
videoSource: videoBackground
|
||||
text: ""
|
||||
|
||||
Component.onCompleted: slideItem = presentationSlide
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import Qt.labs.platform 1.1 as Labs
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.2
|
||||
import org.kde.kirigami 2.13 as Kirigami
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue