melawy-plasma-plasmoid-arch.../com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml

74 lines
1.4 KiB
QML
Raw Normal View History

2023-04-17 12:12:12 +05:00
import QtQml 2.0
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
ColumnLayout {
Layout.fillHeight: true
Layout.fillWidth: true
property alias cfg_updateInterval: updateIntervalSpin.value
property alias cfg_commandForCheckingUpdates: commandForCheckingUpdates.text
property alias cfg_commandForUpgrade: commandForUpgrade.text
property alias cfg_showNotification: showNotification.checked
RowLayout {
Layout.fillWidth: true
Label {
text: i18nc("@title:label", "Update interval (minutes):")
}
SpinBox {
id: updateIntervalSpin
from: 1
to: 1440 // 1 day
editable: true
}
}
RowLayout {
Layout.fillWidth: true
Label {
text: i18nc("@title:label", "Notifications:")
}
CheckBox {
id: showNotification
text: i18nc("@option:check", "Show notification")
}
}
RowLayout {
Layout.fillWidth: true
Label {
text: i18nc("@title:label", "Command for cheching updates:")
}
TextField {
id: commandForCheckingUpdates
2024-01-03 20:41:39 +05:00
placeholderText: i18n("Write command for cheching updates")
2023-04-17 12:12:12 +05:00
}
}
RowLayout {
Layout.fillWidth: true
Label {
text: i18nc("@title:label", "Command for upgrade:")
}
TextField {
id: commandForUpgrade
2024-01-03 20:41:39 +05:00
placeholderText: i18n("Write command for upgrade")
2023-04-17 12:12:12 +05:00
}
}
Item {
Layout.fillHeight: true
Layout.fillWidth: true
}
}