CommandButton Class

class Core::CommandButton

The CommandButton class is a tool button associated with one of the registered Command objects. More...

Header: #include <coreplugin/actionmanager/commandbutton.h>
Inherits: QToolButton


Public Functions

void setCommandId(Utils::Id id)
void setToolTipBase(const QString &toolTipBase)
QString toolTipBase() const

Detailed Description

Tooltip of this button consists of toolTipBase property value and Command's key sequence which is automatically updated when user changes it.

Property Documentation

toolTipBase : QString

This property holds the tool tip base for the command button.

Access functions:

QString toolTipBase() const
void setToolTipBase(const QString &toolTipBase)

Member Function Documentation

void CommandButton::setCommandId(Utils::Id id)

Sets the ID of the command associated with this tool button to id.

© 2020 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.