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) |
Additional Inherited Members | |
Public Types inherited from KAction | |
enum | GlobalShortcutLoading { Autoloading = 0x0, NoAutoloading = 0x4 } |
enum | ShortcutType { ActiveShortcut = 0x1, DefaultShortcut = 0x2 } |
Properties inherited from KAction | |
KShortcut | globalShortcut |
bool | globalShortcutAllowed |
bool | globalShortcutEnabled |
KShortcut | shortcut |
bool | shortcutConfigurable |
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
Definition at line 104 of file ktoolbarlabelaction.cpp.
|
protectedvirtual |
Definition at line 78 of file ktoolbarlabelaction.cpp.
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.