KDEUI
KToggleToolBarAction Class Reference
#include <ktoggletoolbaraction.h>

Detailed Description
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 perfom 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 46 of file ktoggletoolbaraction.h.
Public Member Functions | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
KToggleToolBarAction (KToolBar *toolBar, const QString &text, QObject *parent) | |
KToggleToolBarAction (const char *toolBarName, const QString &text, QObject *parent) | |
KToolBar * | toolBar () |
virtual | ~KToggleToolBarAction () |
Constructor & Destructor Documentation
KToggleToolBarAction::KToggleToolBarAction | ( | const char * | toolBarName, | |
const QString & | text, | |||
QObject * | parent | |||
) |
Create a KToggleToolbarAction 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.
- Parameters:
-
The action's parent object.
Definition at line 53 of file ktoggletoolbaraction.cpp.
KToggleToolBarAction::KToggleToolBarAction | ( | KToolBar * | toolBar, | |
const QString & | text, | |||
QObject * | parent | |||
) |
Create a KToggleToolbarAction that manages the.
- Parameters:
-
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 parent The action's parent object.
Definition at line 60 of file ktoggletoolbaraction.cpp.
KToggleToolBarAction::~KToggleToolBarAction | ( | ) | [virtual] |
Member Function Documentation
KToolBar * KToggleToolBarAction::toolBar | ( | ) |
Returns a pointer to the tool bar it manages.
Definition at line 109 of file ktoggletoolbaraction.cpp.
The documentation for this class was generated from the following files: