.TH "KWidgetAction" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KWidgetAction \- An action that automatically embeds a widget into a toolbar.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kaction.h>\fP
.PP
Inherits \fBKAction\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKWidgetAction\fP (\fBQWidget\fP *widget, const  \fBQString\fP &text, const  KShortcut &cut, const  \fBQObject\fP *receiver, const  char *slot, \fBKActionCollection\fP *\fBparent\fP, const  char *\fBname\fP)"
.br
.RI "\fICreate an action that will embed widget into a toolbar when plugged. \fP"
.ti -1c
.RI "\fBQWidget\fP * \fBwidget\fP ()"
.br
.RI "\fIReturns the widget associated with this action. \fP"
.ti -1c
.RI "void \fBsetAutoSized\fP (bool)"
.br
.ti -1c
.RI "virtual int \fBplug\fP (\fBQWidget\fP *w, int index=-1)"
.br
.RI "\fIPlug the action. \fP"
.ti -1c
.RI "virtual void \fBunplug\fP (\fBQWidget\fP *w)"
.br
.RI "\fIUnplug the action. \fP"
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBslotToolbarDestroyed\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
An action that automatically embeds a widget into a toolbar. Definition at line 1696 of file kaction.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KWidgetAction::KWidgetAction (\fBQWidget\fP * widget, const \fBQString\fP & text, const KShortcut & cut, const \fBQObject\fP * receiver, const char * slot, \fBKActionCollection\fP * parent, const char * name)"
.PP
Create an action that will embed widget into a toolbar when plugged. This action may only be plugged into a toolbar. Definition at line 2914 of file kaction.cpp.
.PP
References KStdAccel::cut(), and KStdAccel::name().
.SH "Member Function Documentation"
.PP 
.SS "\fBQWidget\fP* KWidgetAction::widget ()\fC [inline]\fP"
.PP
Returns the widget associated with this action. Definition at line 1714 of file kaction.h.
.SS "int KWidgetAction::plug (\fBQWidget\fP * w, int index = -1)\fC [virtual]\fP"
.PP
Plug the action. The widget passed to the constructor will be reparented to w, which must inherit \fBKToolBar\fP. Reimplemented from \fBKAction\fP.
.PP
Definition at line 2947 of file kaction.cpp.
.PP
References QObject::connect(), QObject::destroyed(), KToolBar::insertWidget(), QObject::name(), and KToolBar::setItemAutoSized().
.SS "void KWidgetAction::unplug (\fBQWidget\fP * w)\fC [virtual]\fP"
.PP
Unplug the action. Ensures that the action is not destroyed. It will be hidden and reparented to 0L instead. Reimplemented from \fBKAction\fP.
.PP
Definition at line 2977 of file kaction.cpp.
.PP
References QObject::disconnect(), KAction::isPlugged(), and KAction::unplug().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
