Ubuntu.Components ActionList

List of Action items An ActionList provies a way of grouping actions together.

Import Statement: import Ubuntu.Components 1.3
Inherited By: ExclusiveGroup.

Properties

Signals

Methods

Detailed Description

ActionList {
    Action {
        id: action1
    }
    Action {
        id: action2
    }
}

Property Documentation

[default] actions : list<Action>

List of Actions in this ActionList Note that when you set this property, the children of the ActionList will be ignored, so do not set the list and define children.

The advantage of setting actions over using the children is that the same Action items can be used in several sets of actions.

Signal Documentation

added(Action action)

Signal called when an action is added to the list

This QML signal was introduced in Ubuntu.Components 1.3.

removed(Action action)

Signal called when an action is removed from the list

This QML signal was introduced in Ubuntu.Components 1.3.

Method Documentation

addAction(Action action)

Adds an Action to the list programatically.

Item {
    Instantiator {
        model: 4
        onObjectAdded: actionList.addAction(object)
        onObjectRemoved: actionList.removeAction(object)
        Action {}
    }
    ActionList {
        id: actionList
    }
}

This QML method was introduced in Ubuntu.Components 1.3.

See also ActionList::removeAction.

removeAction(Action action)

Removes an action from the list programatically.

This QML method was introduced in Ubuntu.Components 1.3.

See also ActionList::addAction.