ActionContainer Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ActionContainer

Extending Qt Creator Manual 4.5.0

# ActionContainer Class

(Core::ActionContainer)

- List of all members, including inherited members

## Public Types

enum | OnAllDisabledBehavior { Disable, Hide, Show }

## Public Functions

virtual void | addAction(Command *action, Id group = Id()) = 0
virtual void | addMenu(ActionContainer *menu, Id group = Id()) = 0
virtual void | addMenu(ActionContainer *before, ActionContainer *menu, Id group = Id()) = 0
Command * | addSeparator(Id group = Id())
virtual Command * | addSeparator(const Context &context, Id group = Id(), QAction **outSeparator = 0) = 0
virtual void | appendGroup(Id group) = 0
virtual void | clear() = 0
virtual Id | id() const = 0
virtual void | insertGroup(Id before, Id group) = 0
virtual QAction * | insertLocation(Id group) const = 0
virtual QMenu * | menu() const = 0
virtual QMenuBar * | menuBar() const = 0
virtual ActionContainer::OnAllDisabledBehavior | onAllDisabledBehavior() const = 0
virtual void | setOnAllDisabledBehavior(OnAllDisabledBehavior behavior) = 0

## Member Type Documentation

### enum ActionContainer::OnAllDisabledBehavior

## Member Function Documentation

### `[pure virtual]` void ActionContainer::addAction(Command *action, Id group = Id())

### `[pure virtual]` void ActionContainer::addMenu(ActionContainer *menu, Id group = Id())

### `[pure virtual]` void ActionContainer::addMenu(ActionContainer *before, ActionContainer *menu, Id group = Id())

### Command *ActionContainer::addSeparator(Id group = Id())

### `[pure virtual]` Command *ActionContainer::addSeparator(const Context &context, Id group = Id(), QAction **outSeparator = 0)

### `[pure virtual]` void ActionContainer::appendGroup(Id group)

### `[pure virtual]` void ActionContainer::clear()

### `[pure virtual]` Id ActionContainer::id() const

### `[pure virtual]` void ActionContainer::insertGroup(Id before, Id group)

### `[pure virtual]` QAction *ActionContainer::insertLocation(Id group) const

### `[pure virtual]` QMenu *ActionContainer::menu() const

### `[pure virtual]` QMenuBar *ActionContainer::menuBar() const

### `[pure virtual]` ActionContainer::OnAllDisabledBehavior ActionContainer::onAllDisabledBehavior() const

See also setOnAllDisabledBehavior().

### `[pure virtual]` void ActionContainer::setOnAllDisabledBehavior(OnAllDisabledBehavior behavior)

See also onAllDisabledBehavior().