KDEUI
#include <ktoggletoolbaraction.h>
Additional Inherited Members | |
Public Types inherited from KAction | |
enum | GlobalShortcutLoading { Autoloading = 0x0, NoAutoloading = 0x4 } |
enum | ShortcutType { ActiveShortcut = 0x1, DefaultShortcut = 0x2 } |
Signals inherited from KAction | |
void | authorized (KAuth::Action *action) |
void | globalShortcutChanged (const QKeySequence &) |
void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Slots inherited from KToggleAction | |
virtual void | slotToggled (bool checked) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Member Functions inherited from QWidgetAction | |
QList< QWidget * > | createdWidgets () const |
virtual QWidget * | createWidget (QWidget *parent) |
virtual void | deleteWidget (QWidget *widget) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from KAction | |
KShortcut | globalShortcut |
bool | globalShortcutAllowed |
bool | globalShortcutEnabled |
KShortcut | shortcut |
bool | shortcutConfigurable |
Properties inherited from QAction | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
softKeyRole | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Properties inherited from QObject | |
objectName | |
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.
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.
|
virtual |
Destroys toggle toolbar action.
Definition at line 75 of file ktoggletoolbaraction.cpp.
Member Function Documentation
Reimplemented from.
- See also
- QObject.
Reimplemented from QWidgetAction.
Definition at line 80 of file ktoggletoolbaraction.cpp.
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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.