doing dumb things for obs
This commit is contained in:
parent
4b489d4e45
commit
b07e59659d
4 changed files with 101 additions and 43 deletions
|
@ -1,6 +1,6 @@
|
|||
import QtQuick 2.13
|
||||
/* import QtQuick.Dialogs 1.0 */
|
||||
import QtQuick.Controls 2.0 as Controls
|
||||
import QtQuick.Controls 2.12 as Controls
|
||||
/* import QtQuick.Window 2.15 */
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Shapes 1.15
|
||||
|
@ -279,37 +279,35 @@ Item {
|
|||
}
|
||||
Controls.Menu {
|
||||
id: rightClickMenu
|
||||
x: mouse.mouseX
|
||||
y: mouse.mouseY + 10
|
||||
Kirigami.Action {
|
||||
text: "copy"
|
||||
text: "Copy"
|
||||
}
|
||||
Kirigami.Action {
|
||||
text: "paste"
|
||||
text: "Paste"
|
||||
}
|
||||
Kirigami.Action {
|
||||
text: "delete"
|
||||
text: "Delete"
|
||||
onTriggered: removeItem(index)
|
||||
}
|
||||
Kirigami.Action {
|
||||
text: "Obs Scenes"
|
||||
onTriggered: {
|
||||
ObsModel.updateScenes();
|
||||
console.log("udated")
|
||||
obsList.model = ObsModel.scenes
|
||||
obsMenu.open();
|
||||
|
||||
Controls.MenuSeparator {}
|
||||
|
||||
Controls.Menu {
|
||||
id: obsMenu
|
||||
title: "Obs Scenes"
|
||||
|
||||
ListView {
|
||||
width: parent.width
|
||||
height: 200
|
||||
model: ObsModel.scenes
|
||||
delegate: Controls.ToolButton {
|
||||
width: parent.width
|
||||
text: modelData
|
||||
onClicked: ObsModel.setScene(modelData)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Controls.Menu {
|
||||
id: obsMenu
|
||||
x: rightClickMenu.x + rightClickMenu.width
|
||||
y: mouse.mouseY
|
||||
ListView {
|
||||
id: obsList
|
||||
delegate: Kirigami.Action { text: modelData }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,9 +15,10 @@ Kirigami.OverlaySheet {
|
|||
text: "Settings"
|
||||
}
|
||||
|
||||
/* Component.onCompleted: { */
|
||||
/* showPassiveNotification(screenModel.get(1).name) */
|
||||
/* } */
|
||||
Component.onCompleted: {
|
||||
/* ObsModel.getObs(); */
|
||||
/* ObsModel.updateScenes(); */
|
||||
}
|
||||
|
||||
Kirigami.FormLayout {
|
||||
implicitHeight: Kirigami.Units.gridUnit * 30
|
||||
|
@ -61,6 +62,21 @@ Kirigami.OverlaySheet {
|
|||
text: "Sound Effect"
|
||||
onClicked: soundFileDialog.open()
|
||||
}
|
||||
|
||||
Controls.ToolButton {
|
||||
Kirigami.FormData.label: i18nc("@label:button", "OBS debug")
|
||||
text: "Obs Debug"
|
||||
onClicked: {
|
||||
ObsModel.updateScenes();
|
||||
console.log(ObsModel.scenes);
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.ActionTextField {
|
||||
Kirigami.FormData.label: i18nc("@label:textbox", "Obs Connection")
|
||||
text: ObsModel.connected
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue