ProxyAction Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ProxyAction

Extending Qt Creator Manual 4.6.0

# ProxyAction Class

(Utils::ProxyAction)

- List of all members, including inherited members

## Public Types

enum | Attribute { Hide, UpdateText, UpdateIcon }
flags | Attributes

## Public Functions

| ProxyAction(QObject *parent = 0)
QAction * | action() const
bool | hasAttribute(Attribute attribute)
void | initialize(QAction *action)
void | removeAttribute(Attribute attribute)
void | setAction(QAction *action)
void | setAttribute(Attribute attribute)
void | setShortcutVisibleInToolTip(bool visible)
bool | shortcutVisibleInToolTip() const

## Static Public Members

ProxyAction * | proxyActionWithIcon(QAction *original, const QIcon &newIcon)
QString | stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut)

## Member Type Documentation

### enum ProxyAction::Attribute
flags ProxyAction::Attributes

The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.

## Member Function Documentation

### ProxyAction::ProxyAction(QObject *parent = 0)

Default constructs an instance of ProxyAction.

### QAction *ProxyAction::action() const

See also setAction().

### bool ProxyAction::hasAttribute(Attribute attribute)

### void ProxyAction::initialize(QAction *action)

### `[static]` ProxyAction *ProxyAction::proxyActionWithIcon(QAction *original, const QIcon &newIcon)

### void ProxyAction::removeAttribute(Attribute attribute)

### void ProxyAction::setAction(QAction *action)

See also action().

### void ProxyAction::setAttribute(Attribute attribute)

See also hasAttribute().

### void ProxyAction::setShortcutVisibleInToolTip(bool visible)

See also shortcutVisibleInToolTip().

### bool ProxyAction::shortcutVisibleInToolTip() const

See also setShortcutVisibleInToolTip().

### `[static]` QString ProxyAction::stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut)