class KToolBarLabelAction


Module kdeui
Namespace
Class KToolBarLabelAction
Inherits KAction
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:

KHistoryCombo* findCombo = new KHistoryCombo( true, this );

KWidgetAction* action = new KWidgetAction( findCombo, i18n("Find Combo"), Qt.Key_F6, this, SLOT( slotFocus() ), actionCollection(), "find_combo");

KAction *action = new KToolBarLabelAction( action, i18n( "Find "), "find_label" ); action->setShortcut( Qt.Key_F6 ); connect( action, SIGNAL( triggered() ), this, SLOT( slotFocus() ) );

Author Felix Berger



methods