|
Krita Source Code Documentation
|
#include <ktoggletoolbaraction.h>
Inheritance diagram for KToggleToolBarAction:Classes | |
| class | Private |
Public Member Functions | |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| KToggleToolBarAction (const char *toolBarName, const QString &text, QObject *parent) | |
| KToggleToolBarAction (KisToolBar *toolBar, const QString &text, QObject *parent) | |
| KisToolBar * | toolBar () |
| ~KToggleToolBarAction () override | |
Private Slots | |
| void | slotToggled (bool checked) override |
Private Attributes | |
| Private *const | d |
An action that takes care of everything associated with showing or hiding a toolbar by a menu action. It will show or hide the toolbar with the given name when activated, and check or uncheck itself if the toolbar is manually shown or hidden.
If you need to perform some additional action when the toolbar is shown or hidden, connect to the toggled(bool) signal. It will be emitted after the toolbar's visibility has changed, whenever it changes.
Definition at line 35 of file ktoggletoolbaraction.h.
| KToggleToolBarAction::KToggleToolBarAction | ( | const char * | toolBarName, |
| const QString & | text, | ||
| QObject * | parent ) |
Create a KisKToggleToolbarAction that manages the toolbar named toolBarName. This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.
| toolBarName | The toolbar name. |
| text | The toolbar hint text. |
| parent | The action's parent object. |
Definition at line 40 of file ktoggletoolbaraction.cpp.
References d, and KToggleToolBarAction::Private::toolBarName.
| KToggleToolBarAction::KToggleToolBarAction | ( | KisToolBar * | toolBar, |
| const QString & | text, | ||
| QObject * | parent ) |
Create a KisKToggleToolbarAction that manages the toolBar. This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.
| toolBar | the toolbar to be managed |
| text | The action's text |
| parent | The action's parent object. |
Definition at line 47 of file ktoggletoolbaraction.cpp.
References KToggleToolBarAction::Private::beingToggled, d, KToggleToolBarAction::Private::toolBar, and toolBar().
|
override |
Destroys toggle toolbar action.
Definition at line 59 of file ktoggletoolbaraction.cpp.
References d.
|
override |
Reimplemented from
Definition at line 64 of file ktoggletoolbaraction.cpp.
References KToggleToolBarAction::Private::beingToggled, d, and KToggleToolBarAction::Private::toolBar.
|
overrideprivateslot |
Definition at line 101 of file ktoggletoolbaraction.cpp.
References KToggleToolBarAction::Private::beingToggled, d, and KToggleToolBarAction::Private::toolBar.
| KisToolBar * KToggleToolBarAction::toolBar | ( | ) |
Returns a pointer to the tool bar it manages.
Definition at line 96 of file ktoggletoolbaraction.cpp.
References d, and KToggleToolBarAction::Private::toolBar.
|
private |
Definition at line 83 of file ktoggletoolbaraction.h.