CommandButton Class
class Core::CommandButtonThe CommandButton class is an action associated with one of the registered Command objects. More...
Header: | #include <coreplugin/actionmanager/commandbutton.h> |
Inherits: | QToolButton |
Public Functions
CommandButton(QWidget *parent = nullptr) | |
CommandButton(Utils::Id id, QWidget *parent = nullptr) | |
void | setToolTipBase(const QString &toolTipBase) |
QString | toolTipBase() const |
Detailed Description
\inmodule
QtCreator
The tooltip of the button consists of toolTipBase property value and Command's key sequence which is automatically updated when user changes it.
Member Function Documentation
[explicit]
CommandButton::CommandButton(QWidget *parent = nullptr)
\internal
[explicit]
CommandButton::CommandButton(Utils::Id id, QWidget *parent = nullptr)
\internal
void CommandButton::setToolTipBase(const QString &toolTipBase)
Sets the base tool tip that is extended with the command's shortcut to toolTipBase.
See also toolTipBase().
QString CommandButton::toolTipBase() const
The base tool tip that is extended with the command's shortcut. Defaults to the command's description.
See also setToolTipBase() and Command::description().