make unchangable properties readonly

This commit is contained in:
Cyril Anisimov 2024-12-14 19:33:54 +01:00
parent 906cf7b939
commit 378db1a9e5
2 changed files with 22 additions and 20 deletions

View file

@ -46,13 +46,15 @@ PageType {
QtObject {
id: onlyForwardApps
property string name: qsTr("Only the apps from the list should have access via VPN")
property int type: routeMode.onlyForwardApps
readonly property string name: qsTr("Only the apps from the list should have access via VPN")
readonly property int type: routeMode.onlyForwardApps
}
QtObject {
id: allExceptApps
property string name: qsTr("Apps from the list should not have access via VPN")
property int type: routeMode.allExceptApps
readonly property string name: qsTr("Apps from the list should not have access via VPN")
readonly property int type: routeMode.allExceptApps
}
function getRouteModesModelIndex() {