2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Renato Araujo Oliveira Filho <renato@canonical.com>
24 \inqmlmodule Indicators 0.1
25 \brief Helper class to connect to a qmenumodel action
31 onClick: { action.activate() }
35 actionGroup: menuItem.actionGroup
36 action: "/ubuntu/sound/enabled"
48 property string action: ""
52 The dbus action group object
54 property QtObject actionGroup: null
58 This is a read-only property with the current validity of the action
60 readonly property bool valid: actionObject ? actionObject.valid : false
62 readonly property var state: actionObject ? actionObject.state : undefined
65 property QtObject actionObject: null
67 function activate(param) {
69 actionObject.activate(param);
73 onActionGroupChanged: updateAction()
74 onActionChanged: updateAction()
77 target: menuAction.actionGroup != undefined ? menuAction.actionGroup : null
78 onActionAppear: menuAction.updateAction();
79 onActionVanish: menuAction.updateAction();
80 onStatusChanged: menuAction.updateAction();
83 function updateAction() {
84 actionObject = action !== "" && actionGroup ? actionGroup.action(action) : null
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list