• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KWidgetAction Class Reference

An action that automatically embeds a widget into a toolbar. More...

#include <kactionclasses.h>

Inheritance diagram for KWidgetAction:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Protected Slots

void slotToolbarDestroyed ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

An action that automatically embeds a widget into a toolbar.

Definition at line 1298 of file kactionclasses.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.

Definition at line 2096 of file kactionclasses.cpp.

KWidgetAction::~KWidgetAction (  )  [virtual]

Definition at line 2107 of file kactionclasses.cpp.


Member Function Documentation

int KWidgetAction::plug ( QWidget *  widget,
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.

Definition at line 2130 of file kactionclasses.cpp.

void KWidgetAction::setAutoSized ( bool  autoSized  ) 

Definition at line 2111 of file kactionclasses.cpp.

void KWidgetAction::slotToolbarDestroyed (  )  [protected, slot]

Definition at line 2175 of file kactionclasses.cpp.

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.

Definition at line 2161 of file kactionclasses.cpp.

void KWidgetAction::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KAction.

Reimplemented in KToolBarLabelAction.

Definition at line 2389 of file kactionclasses.cpp.

QWidget* KWidgetAction::widget (  )  [inline]

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:
  • kactionclasses.h
  • kactionclasses.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal