Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KWidgetAction Class Reference

#include <kaction.h>

Inheritance diagram for KWidgetAction:

KAction List of all members.

Public Methods

 KWidgetAction (QWidget *widget, const QString &text, const KShortcut &cut, const QObject *receiver, const char *slot, KActionCollection *parent, const char *name)
QWidget * widget ()
virtual int plug (QWidget *w, int index=-1)
virtual void unplug (QWidget *w)

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

An action that automatically embeds a widget into a toolbar.

Definition at line 1696 of file kaction.h.


Constructor & Destructor Documentation

KWidgetAction::KWidgetAction QWidget *    widget,
const QString &    text,
const KShortcut &    cut,
const QObject *    receiver,
const char *    slot,
KActionCollection   parent,
const char *    name
 

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


Member Function Documentation

virtual int KWidgetAction::plug QWidget *    w,
int    index = -1
[virtual]
 

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

Reimplemented from KAction.

virtual void KWidgetAction::unplug QWidget *    w [virtual]
 

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

Reimplemented from KAction.

QWidget* KWidgetAction::widget   [inline]
 

Returns the widget associated with this action.

Definition at line 1714 of file kaction.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:28 2003 for kdelibs by doxygen1.2.18