KToolBarLabelAction
#include <KToolBarLabelAction>

Signals | |
void | textChanged (const QString &newText) |
Protected Member Functions | |
bool | event (QEvent *) override |
bool | eventFilter (QObject *watched, QEvent *event) override |
![]() | |
QList< QWidget * > | createdWidgets () const const |
virtual void | deleteWidget (QWidget *widget) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
enum | ActionEvent |
enum | MenuRole |
enum | Priority |
![]() | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
shortcutVisibleInContextMenu | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
![]() | |
objectName | |
![]() | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
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) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
AboutQtRole | |
AboutRole | |
ApplicationSpecificRole | |
HighPriority | |
Hover | |
LowPriority | |
NormalPriority | |
NoRole | |
PreferencesRole | |
QuitRole | |
TextHeuristicRole | |
Trigger | |
![]() | |
typedef | QObjectList |
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.
◆ setBuddy()
void KToolBarLabelAction::setBuddy | ( | QAction * | buddy | ) |
Sets the label's buddy to buddy.
See QLabel::setBuddy() for details.
Definition at line 42 of file ktoolbarlabelaction.cpp.
◆ textChanged
|
signal |
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-2023 The KDE developers.
Generated on Mon May 8 2023 04:01:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.