KToolBarLabelAction
#include <KToolBarLabelAction>
Signals | |
void | textChanged (const QString &newText) |
Protected Member Functions | |
bool | event (QEvent *) override |
bool | eventFilter (QObject *watched, QEvent *event) override |
Protected Member Functions inherited from QWidgetAction | |
QList< QWidget * > | createdWidgets () const const |
virtual void | deleteWidget (QWidget *widget) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
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 43 of file ktoolbarlabelaction.h.
Constructor & Destructor Documentation
◆ KToolBarLabelAction() [1/2]
Creates a toolbar label.
- Parameters
-
text The label's and the action's text. parent This action's parent.
Definition at line 22 of file ktoolbarlabelaction.cpp.
◆ KToolBarLabelAction() [2/2]
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 30 of file ktoolbarlabelaction.cpp.
◆ ~KToolBarLabelAction()
|
overridedefault |
Destroys the toolbar label.
Member Function Documentation
◆ buddy()
QAction * KToolBarLabelAction::buddy | ( | ) | const |
Returns the label's buddy or a null pointer if no buddy is currently set.
See QLabel::buddy() and QLabel::setBuddy() for more information.
Definition at line 67 of file ktoolbarlabelaction.cpp.
◆ createWidget()
Reimplemented from QWidgetAction.
Reimplemented from QWidgetAction.
Definition at line 99 of file ktoolbarlabelaction.cpp.
◆ event()
|
overrideprotectedvirtual |
Reimplemented from QWidgetAction.
Definition at line 72 of file ktoolbarlabelaction.cpp.
◆ eventFilter()
|
overrideprotectedvirtual |
Reimplemented from QWidgetAction.
Definition at line 84 of file ktoolbarlabelaction.cpp.
◆ setBuddy()
Sets the label's buddy to buddy.
See QLabel::setBuddy() for details.
Definition at line 42 of file ktoolbarlabelaction.cpp.
◆ textChanged
This signal is emitted whenever the text of this action is changed.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.