ProxyAction Class

(Utils::ProxyAction)
Inherits: QAction

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
  • 47 public functions inherited from QAction

Static Public Members

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

Additional Inherited Members

  • 17 properties inherited from QAction
  • 7 public slots inherited from QAction
  • 4 signals inherited from QAction
  • 1 protected function inherited from QAction

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)