KWidgetAction Class Reference
#include <kactionclasses.h>
Inheritance diagram for KWidgetAction:

Detailed Description
An action that automatically embeds a widget into a toolbar.
Definition at line 1298 of file kactionclasses.h.
Public Member Functions | |
KWidgetAction (QWidget *widget, const QString &text, const KShortcut &cut, const QObject *receiver, const char *slot, KActionCollection *parent, const char *name) | |
virtual | ~KWidgetAction () |
QWidget * | widget () |
void | setAutoSized (bool) |
virtual int | plug (QWidget *widget, int index=-1) |
virtual void | unplug (QWidget *w) |
Protected Slots | |
void | slotToolbarDestroyed () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Constructor & Destructor Documentation
|
Create an action that will embed widget into a toolbar when plugged. This action may only be plugged into a toolbar. Definition at line 2096 of file kactionclasses.cpp. |
Member Function Documentation
|
Plug the action. The widget passed to the constructor will be reparented to w, which must inherit KToolBar. Reimplemented from KAction. Definition at line 2130 of file kactionclasses.cpp. |
|
Unplug the action. Ensures that the action is not destroyed. It will be hidden and reparented to 0L instead. Reimplemented from KAction. Definition at line 2161 of file kactionclasses.cpp. |
|
Returns the widget associated with this action.
Definition at line 1316 of file kactionclasses.h. |
The documentation for this class was generated from the following files: