Toolbar on the top of the main window.
More...
#include <TopToolbar.hh>
Inherits QFrame.
Toolbar on the top of the main window.
◆ TopToolbar()
Constructor.
- Parameters
-
[in] | _parent | Parent widget. |
◆ ~TopToolbar()
◆ AddAction()
void AddAction |
( |
QAction * |
_action | ) |
|
Add an action to the end of the toolbar.
- Parameters
-
[in] | _action | The action to be added. |
◆ AddSeparator()
QAction* AddSeparator |
( |
| ) |
|
Add a separator to the end of the toolbar.
- Returns
- The action for the created separator, if successful.
◆ AddWidget()
QAction* AddWidget |
( |
QWidget * |
_widget | ) |
|
Add a widget to the end of the toolbar.
- Returns
- The new toolbar action for the widget, if successful.
◆ InsertAction()
void InsertAction |
( |
const QString & |
_before, |
|
|
QAction * |
_action |
|
) |
| |
Insert an action before a given action.
- Parameters
-
[in] | _before | Name of an action already on the toolbar. This fails to insert the action if the name is not found. |
[in] | _action | The action to be inserted. |
◆ InsertSeparator()
QAction* InsertSeparator |
( |
const QString & |
_before | ) |
|
Insert a separator before a given action.
- Parameters
-
[in] | _before | Name of an action already on the toolbar. |
- Returns
- The action for the created separator, if successful.
◆ InsertWidget()
QAction* InsertWidget |
( |
const QString & |
_before, |
|
|
QWidget * |
_widget |
|
) |
| |
Insert a widget before a given action.
- Parameters
-
[in] | _before | Name of an action already on the toolbar. |
[in] | _widget | Widget to be inserted. |
- Returns
- The new toolbar action for the widget, if successful.
The documentation for this class was generated from the following file: