KDEUI
#include <ktoolbarlabelaction.h>
Signals | |
void | textChanged (const QString &newText) |
Signals inherited from KAction | |
void | authorized (KAuth::Action *action) |
void | globalShortcutChanged (const QKeySequence &) |
void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
Protected Member Functions | |
virtual bool | event (QEvent *) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
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 void | deleteWidget (QWidget *widget) |
Additional Inherited Members | |
Public Types inherited from KAction | |
enum | GlobalShortcutLoading { Autoloading = 0x0, NoAutoloading = 0x4 } |
enum | ShortcutType { ActiveShortcut = 0x1, DefaultShortcut = 0x2 } |
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) |
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
Class to display a label in a toolbar.
KToolBarLabelAction is a convenience class for displaying a label in a toolbar.
It provides easy access to the label's setBuddy(QAction*) and buddy() methods and can be used as follows:
Definition at line 49 of file ktoolbarlabelaction.h.
Constructor & Destructor Documentation
Creates a toolbar label.
- Parameters
-
text The label's and the action's text. parent This action's parent.
Definition at line 33 of file ktoolbarlabelaction.cpp.
KToolBarLabelAction::KToolBarLabelAction | ( | QAction * | buddy, |
const QString & | text, | ||
QObject * | parent | ||
) |
Creates a toolbar label setting a buddy for the label.
- Parameters
-
buddy The action whose widget which is focused when the label's accelerator is typed. text The label's and the action's text. parent This action's parent.
Definition at line 40 of file ktoolbarlabelaction.cpp.
|
virtual |
Destroys the toolbar label.
Definition at line 49 of file ktoolbarlabelaction.cpp.
Member Function Documentation
QAction * KToolBarLabelAction::buddy | ( | ) | const |
Returns the label's buddy or 0 if no buddy is currently set.
See QLabel::buddy() and QLabel::setBuddy() for more information.
Definition at line 73 of file ktoolbarlabelaction.cpp.
Reimplemented from.
- See also
- QActionWidgetFactory.
These lines were copied from Konqueror's KonqDraggableLabel class in konq_misc.cc
Reimplemented from QWidgetAction.
Definition at line 104 of file ktoolbarlabelaction.cpp.
- Reimplemented from superclass.
Reimplemented from KAction.
Definition at line 78 of file ktoolbarlabelaction.cpp.
Reimplemented from QWidgetAction.
Definition at line 90 of file ktoolbarlabelaction.cpp.
void KToolBarLabelAction::setBuddy | ( | QAction * | buddy | ) |
Sets the label's buddy to buddy.
See QLabel::setBuddy() for details.
Definition at line 54 of file ktoolbarlabelaction.cpp.
|
signal |
This signal is emmitted whenever the text of this action is changed.
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.