Screens work and the beginnings of a settings module

This commit is contained in:
Chris Cochrun 2022-03-11 17:00:19 -06:00
parent 9882a0a289
commit fab9f86b41
6 changed files with 67 additions and 32 deletions

View file

@ -8,19 +8,26 @@ import org.presenter 1.0
Kirigami.OverlaySheet {
property ListModel model
property ListModel theModel
id: root
header: Kirigami.Heading {
text: "Settings"
}
/* Component.onCompleted: { */
/* showPassiveNotification(screenModel.get(1).name) */
/* } */
Kirigami.FormLayout {
Controls.ComboBox {
id: screenSelectionField
Kirigami.FormData.label: i18nc("@label:textbox", "Screen:")
model: model
textRole: name
onAccepted: descriptionField.forceActiveFocus()
Kirigami.FormData.label: i18nc("@label:textbox", "Presentation Screen:")
model: screens
textRole: "name"
onActivated: {
presentationScreen = screens[currentIndex];
}
}
Controls.TextField {
id: descriptionField