CommandAction Classclass Core::CommandAction
The CommandAction class is an action associated with one of the registered Command objects. More...
|void||setToolTipBase(const QString &toolTipBase)|
It shares the icon and text of the command. The tooltip of the action consists of toolTipBase property value and Command's key sequence which is automatically updated when user changes it.
Member Function Documentation
void CommandAction::setCommandId(Utils::Id id)
Sets the ID of the command associated with this tool button to id.
void CommandAction::setToolTipBase(const QString &toolTipBase)
Sets the base tool tip that is extended with the command's shortcut.
See also toolTipBase().
QString CommandAction::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().
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.