fixing settings layout
This commit is contained in:
parent
eef1903557
commit
ba3c9dc183
2 changed files with 9 additions and 12 deletions
|
@ -331,10 +331,6 @@ ColumnLayout {
|
|||
value: Kirigami.Theme.highlightedTextColor
|
||||
}
|
||||
}
|
||||
/* icon.source: itemIcon */
|
||||
/* icon.width: Kirigami.Units.gridUnit */
|
||||
/* icon.height: Kirigami.Units.gridUnit */
|
||||
/* /\* supportsMouseEvents: false *\/ */
|
||||
|
||||
Behavior on height {
|
||||
NumberAnimation {
|
||||
|
|
|
@ -9,6 +9,8 @@ import Qt.labs.settings 1.0
|
|||
Kirigami.OverlaySheet {
|
||||
id: root
|
||||
property ListModel theModel
|
||||
implicitHeight: Kirigami.Units.gridUnit * 20
|
||||
implicitWidth: Kirigami.Units.gridUnit * 30
|
||||
|
||||
header: Kirigami.Heading {
|
||||
text: "Settings"
|
||||
|
@ -20,11 +22,10 @@ Kirigami.OverlaySheet {
|
|||
}
|
||||
|
||||
Kirigami.FormLayout {
|
||||
implicitHeight: Kirigami.Units.gridUnit * 30
|
||||
implicitWidth: Kirigami.Units.gridUnit * 30
|
||||
anchors.margins: Kirigami.Units.gridUnit * 10
|
||||
Controls.ComboBox {
|
||||
id: screenSelectionField
|
||||
Kirigami.FormData.label: i18nc("@label:textbox", "Presentation Screen:")
|
||||
Kirigami.FormData.label: "Presentation Screen:"
|
||||
model: screens
|
||||
textRole: "name"
|
||||
onActivated: {
|
||||
|
@ -60,13 +61,13 @@ Kirigami.OverlaySheet {
|
|||
}
|
||||
Controls.ToolButton {
|
||||
id: soundEffectBut
|
||||
Kirigami.FormData.label: i18nc("@label:button", "Sound Effect:")
|
||||
Kirigami.FormData.label: "Sound Effect:"
|
||||
text: "Sound Effect"
|
||||
onClicked: soundFileDialog.open()
|
||||
}
|
||||
|
||||
Controls.ToolButton {
|
||||
Kirigami.FormData.label: i18nc("@label:button", "OBS debug")
|
||||
Kirigami.FormData.label: "OBS debug"
|
||||
text: "Obs Debug"
|
||||
onClicked: {
|
||||
ObsModel.getObs();
|
||||
|
@ -76,12 +77,12 @@ Kirigami.OverlaySheet {
|
|||
}
|
||||
|
||||
Kirigami.ActionTextField {
|
||||
Kirigami.FormData.label: i18nc("@label:textbox", "Obs Connection")
|
||||
Kirigami.FormData.label: "Obs Connection"
|
||||
text: ObsModel.connected
|
||||
}
|
||||
|
||||
Controls.CheckBox {
|
||||
Kirigami.FormData.label: i18nc("@label:checkbox", "Debug")
|
||||
Kirigami.FormData.label: "Debug"
|
||||
onClicked: {
|
||||
RSettings.debug = checked;
|
||||
Utils.dbg("Debugging: " + RSettings.debug);
|
||||
|
@ -89,7 +90,7 @@ Kirigami.OverlaySheet {
|
|||
}
|
||||
|
||||
Controls.CheckBox {
|
||||
Kirigami.FormData.label: i18nc("@label:checkbox", "Run Server")
|
||||
Kirigami.FormData.label: "Run Server"
|
||||
onClicked: {
|
||||
RSettings.runServer = checked;
|
||||
Utils.dbg("Server running: " + RSettings.runServer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue