.TH "KWidgetAction" kde3 "11 Jun 2005" "Version Version 3.4.1" "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 <kactionclasses.h>\fP
.PP
Inherits \fBKAction\fP.
.PP
Inherited by \fBKToolBarLabelAction\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKWidgetAction\fP (\fBQWidget\fP *widget, const \fBQString\fP &text, const \fBKShortcut\fP &cut, const \fBQObject\fP *receiver, const char *slot, \fBKActionCollection\fP *\fBparent\fP, const char *\fBname\fP)"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBwidget\fP ()"
.br
.ti -1c
.RI "void \fBsetAutoSized\fP (bool)"
.br
.ti -1c
.RI "virtual int \fBplug\fP (\fBQWidget\fP *widget, int index=-1)"
.br
.ti -1c
.RI "virtual void \fBunplug\fP (\fBQWidget\fP *w)"
.br
.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. 
.PP
Definition at line 1262 of file kactionclasses.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KWidgetAction::KWidgetAction (\fBQWidget\fP * widget, const \fBQString\fP & text, const \fBKShortcut\fP & 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. 
.PP
This action may only be plugged into a toolbar. 
.PP
Definition at line 2004 of file kactionclasses.cpp.
.PP
References QObject::connect(), KAction::setEnabled(), and widget().
.SH "Member Function Documentation"
.PP 
.SS "\fBQWidget\fP* KWidgetAction::widget ()\fC [inline]\fP"
.PP
Returns the widget associated with this action. 
.PP
Definition at line 1280 of file kactionclasses.h.
.PP
Referenced by KWidgetAction().
.SS "int KWidgetAction::plug (\fBQWidget\fP * widget, int index = \fC-1\fP)\fC [virtual]\fP"
.PP
Plug the action. 
.PP
The widget passed to the constructor will be reparented to w, which must inherit \fBKToolBar\fP. 
.PP
Reimplemented from \fBKAction\fP.
.PP
Definition at line 2038 of file kactionclasses.cpp.
.PP
References QWhatsThis::add(), QObject::connect(), QObject::destroyed(), endl(), KAction::getToolButtonID(), KToolBar::insertWidget(), kdError(), KToolBar::setItemAutoSized(), and KAction::whatsThis().
.SS "void KWidgetAction::unplug (\fBQWidget\fP * w)\fC [virtual]\fP"
.PP
Unplug the action. 
.PP
Ensures that the action is not destroyed. It will be hidden and reparented to 0L instead. 
.PP
Reimplemented from \fBKAction\fP.
.PP
Definition at line 2069 of file kactionclasses.cpp.
.PP
References QObject::disconnect(), KAction::isPlugged(), and KAction::unplug().

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