ToolBar is the QDocWindow instatiated in QMainWindow.
More...
ToolBar is the QDocWindow instatiated in QMainWindow.
◆ addItem()
uuid ToolBar::addItem |
( |
QString |
, |
|
|
QString |
|
|
) |
| |
Adds a action button item at the end of the toolbar.
- Parameters
-
text,the | name of the button. |
iconPath,the | full path of the image to use in the button. |
- Returns
- uuid, the UUID of the action button item that was added.
◆ addItemWithName()
uuid ToolBar::addItemWithName |
( |
QString |
, |
|
|
QString |
, |
|
|
QString |
|
|
) |
| |
Adds a action button item at the end of the toolbar.
- Parameters
-
text,the | name of the button. |
iconPath,the | full path of the image to use in the button. |
name,the | object name assigned to the button action. |
- Returns
- uuid, the UUID of the action button item that was added.
◆ count()
Returns the number of action items in this toolbar.
- Returns
- int, the number of action items in this toolbar.
◆ getItemByUuid()
MenuItem ToolBar::getItemByUuid |
( |
uuid |
| ) |
|
Returns the action button item with the specified UUID.
- Parameters
-
id,the | UUID of the action button item of interest. |
- Returns
- MenuItem, the action button item object with the specified UUID.
◆ removeItemUuid()
void ToolBar::removeItemUuid |
( |
uuid |
| ) |
|
Removes the action button item with the specified UUID.
- Parameters
-
id,the | UUID of the action button item of interest. |
◆ setItemAtEnabled()
void ToolBar::setItemAtEnabled |
( |
int |
, |
|
|
bool |
|
|
) |
| |
Enables or disables the action item at the specified index.
- Parameters
-
index,the | index of the action item. |
bEnabled,true | to enable the action item, false to disable it. |
◆ setItemAtVisible()
void ToolBar::setItemAtVisible |
( |
int |
, |
|
|
bool |
|
|
) |
| |
Shows or hides the action item at the specified index.
- Parameters
-
index,the | index of the action item. |
bVisible,true | to show the action item, false to hide it. |
◆ setItemEnabled()
void ToolBar::setItemEnabled |
( |
string |
, |
|
|
bool |
|
|
) |
| |
Enables or disables the specified action item.
- Parameters
-
name,the | name of the action item. |
bEnabled,true | to enable the action item, false to disable it. |
◆ setItemObjectEnabled()
void ToolBar::setItemObjectEnabled |
( |
string |
, |
|
|
bool |
|
|
) |
| |
Enables or disables the specified action item by using object name.
- Parameters
-
name,the | object name of the action item. |
bEnabled,true | to enable the action item, false to disable it. |
◆ setItemVisible()
void ToolBar::setItemVisible |
( |
string |
, |
|
|
bool |
|
|
) |
| |
Shows or hides the specified action item.
- Parameters
-
name,the | name of the action item. |
bVisible,true | to show the action item, false to hide it. |
◆ setVisible()
void ToolBar::setVisible |
( |
bool |
| ) |
|
Shows or hides this widget from view.
- Parameters
-
bVisible,true | to show this widget, false to hide it. |
The documentation for this class was generated from the following file: