KWidgetAction Class Reference
An action that automatically embeds a widget into a toolbar. More...
#include <kaction.h>
Inheritance diagram for KWidgetAction:

Public Methods | |
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. | |
QWidget * | widget () |
Returns the widget associated with this action. | |
virtual int | plug (QWidget *w, int index=-1) |
Plug the action. | |
virtual void | unplug (QWidget *w) |
Unplug the action. | |
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
|
Create an action that will embed widget into a toolbar when plugged. This action may only be plugged into a toolbar. Definition at line 2918 of file kaction.cpp. |
Member Function Documentation
|
Returns the widget associated with this action.
|
|
Plug the action. The widget passed to the constructor will be reparented to w, which must inherit KToolBar. Reimplemented from KAction. Definition at line 2951 of file kaction.cpp. References QObject::connect(), QObject::destroyed(), KToolBar::insertWidget(), QObject::name(), and KToolBar::setItemAutoSized(). |
|
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 2981 of file kaction.cpp. References QObject::disconnect(), KAction::isPlugged(), and KAction::unplug(). |
The documentation for this class was generated from the following files: