#include <kpushbutton.h>
Inheritance diagram for KPushButton:

Public Methods | |
| KPushButton (QWidget *parent, const char *name=0) | |
| KPushButton (const QString &text, QWidget *parent, const char *name=0) | |
| KPushButton (const QIconSet &icon, const QString &text, QWidget *parent, const char *name=0) | |
| KPushButton (const KGuiItem &item, QWidget *parent, const char *name=0) | |
| ~KPushButton () | |
| void | setDragEnabled (bool enable) |
| bool | isDragEnabled () const |
| void | setGuiItem (const KGuiItem &item) |
Protected Methods | |
| virtual QDragObject * | dragObject () |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | startDrag () |
This is nothing but a QPushButton with drag-support and KGuiItem support. You have to call setDragEnabled( true ) and override the virtual method dragObject() to specify the QDragObject to be used.
Definition at line 37 of file kpushbutton.h.
|
||||||||||||
|
Default constructor. |
|
||||||||||||||||
|
Constructor, that sets the button-text to |
|
||||||||||||||||||||
|
Constructor, that sets an icon and the button-text to |
|
||||||||||||||||
|
Constructor that takes a KGuiItem for the text, the icon, the tooltip and the what's this help |
|
|
Destructs the button. |
|
|
Reimplement this and return the QDragObject that should be used for the drag. Default implementation returns 0L, so that no drag is initiated. |
|
|
Definition at line 77 of file kpushbutton.h. |
|
|
Reimplemented to add drag-support |
|
|
Reimplemented to add drag-support |
|
|
Enables/disables drag-support. Default is enabled. |
|
|
Sets the KGuiItem for this button. |
|
|
Starts a drag (dragCopy() by default) using dragObject() |
1.2.18