s/settingsModule/settingsCommand

This commit is contained in:
Marco Martin 2015-04-11 16:55:23 +02:00
parent fe4ad093ec
commit 7263c9ac15
2 changed files with 12 additions and 14 deletions

View file

@ -62,11 +62,9 @@ RowLayout {
id: labelMouseArea
anchors.fill: parent
onClicked: {
var command = "active-settings";
if (model.settingsModule) {
command += " -m " + model.settingsModule;
if (model.settingsCommand) {
plasmoid.nativeInterface.executeCommand(model.settingsCommand);
}
plasmoid.nativeInterface.executeCommand(command)
}
}
}

View file

@ -38,61 +38,61 @@ Item {
text: "Settings"
icon: "configure"
enabled: false
settingsModule: ""
settingsCommand: "active-settings"
}
ListElement {
text: "Mobile network"
icon: "network-mobile-80"
enabled: true
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Airplane mode"
icon: "flightmode-on"
enabled: false
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Bluetooth"
icon: "preferences-system-bluetooth"
enabled: false
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Wireless"
icon: "network-wireless-on"
enabled: true
settingsModule: "org.kde.satellite.settings.wifi"
settingsCommand: "active-settings -m org.kde.satellite.settings.wifi"
}
ListElement {
text: "Alarms"
icon: "korgac"
enabled: false
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Notifications"
icon: "preferences-desktop-notification"
enabled: true
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Brightness"
icon: "video-display-brightness"
enabled: false
settingsModule: "org.kde.active.settings.powermanagement"
settingsCommand: "active-settings -m org.kde.active.settings.powermanagement"
}
ListElement {
text: "Flashlight"
icon: "package_games_puzzle"
enabled: false
settingsModule: ""
settingsCommand: ""
}
ListElement {
text: "Location"
icon: "plasmaapplet-location"
enabled: false
settingsModule: ""
settingsCommand: ""
}
}