40 lines
1 KiB
QML
40 lines
1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Dialogs 1.0
|
|
import QtQuick.Controls 2.15 as Controls
|
|
import QtQuick.Layouts 1.15
|
|
import org.kde.kirigami 2.13 as Kirigami
|
|
import "./" as Presenter
|
|
import org.presenter 1.0
|
|
import Qt.labs.settings 1.0
|
|
|
|
Kirigami.OverlaySheet {
|
|
id: root
|
|
property ListModel theModel
|
|
|
|
header: Kirigami.Heading {
|
|
text: "Settings"
|
|
}
|
|
|
|
/* Component.onCompleted: { */
|
|
/* showPassiveNotification(screenModel.get(1).name) */
|
|
/* } */
|
|
|
|
Kirigami.FormLayout {
|
|
Controls.ComboBox {
|
|
id: screenSelectionField
|
|
Kirigami.FormData.label: i18nc("@label:textbox", "Presentation Screen:")
|
|
model: screens
|
|
textRole: "name"
|
|
onActivated: {
|
|
presentationScreen = screens[currentIndex];
|
|
}
|
|
}
|
|
Controls.ToolButton {
|
|
id: soundEffectBut
|
|
Kirigami.FormData.label: i18nc("@label:button", "Sound Effect:")
|
|
text: "Sound Effect"
|
|
onClicked: soundFileDialog.open()
|
|
}
|
|
}
|
|
|
|
}
|