class KWidgetAction

# class KWidgetAction | An action that automatically embeds a widget into a toolbar. More...
Definition | `#include <kaction.h>`
Inherits | KAction [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- 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* w, int index = -1 )
- virtual void unplug ( QWidget *w )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Slots

- void slotToolbarDestroyed ()

## Detailed Description

An action that automatically embeds a widget into a toolbar.

KWidgetAction ( QWidget* widget, const QString& text, const KShortcut& cut, const QObject* receiver, const char* slot, KActionCollection* parent, const char* name ) | ### KWidgetAction

Create an action that will embed widget into a toolbar when plugged. This action may only be plugged into a toolbar.

~KWidgetAction () | ### ~KWidgetAction

[virtual]

QWidget* widget () | ### widget

Returns the widget associated with this action.

void setAutoSized ( bool ) | ### setAutoSized

int plug ( QWidget* w, int index = -1 ) | ### plug

[virtual]

Plug the action. The widget passed to the constructor will be reparented to w, which must inherit KToolBar.

Reimplemented from KAction.

void unplug ( QWidget *w ) | ### unplug

[virtual]

Unplug the action. Ensures that the action is not destroyed. It will be hidden and reparented to 0L instead.

Reimplemented from KAction.

void slotToolbarDestroyed () | ### slotToolbarDestroyed

[protected slots slot]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KAction.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.