class KPushButton |
|
A QPushButton with drag-support and KGuiItem support
This is nothing but a QPushButton with drag-support and KGuiItem support. You must call #setDragEnabled (true) and override the virtual method dragObject() to specify the QDragObject to be used.
Author Carsten Pfeiffer |
|
Default constructor. |
|
Constructor, that sets the button-text to text |
|
Constructor, that sets an icon and the button-text to text |
|
Constructor that takes a KGuiItem for the text, the icon, the tooltip and the what's this help |
|
|
|
|
returns a delayed popup menu since menu() isn't virtual |
|
Reimplement this and return the QDrag object that should be used
for the drag. Remember to give it "this" as parent.
Default implementation returns 0, so that no drag is initiated. |
|
Reads the standard KGuiItem for this button. |
|
Returns if drag support is enabled or not. |
|
Reimplemented to add drag-support |
|
Reimplemented to add drag-support |
|
Sets a delayed popup menu for consistency, since menu() isn't virtual |
|
Enables/disables drag-support. Default is disabled. |
|
Sets the KGuiItem for this button. |
|
Sets the standard KGuiItem for this button. |
|
Sets the Icon Set for this button. It also takes into account hte KGlobalSettings.showIconsOnPushButtons() setting. |
|
Sets the pixmap for this button. Rarely used. This one exists mostly for usage in Qt designer, with icons embedded into the ui file. But you should rather save them separately, and load them with KIcon("name") so that the icons are themeable. |
|
Sets the text of the button |
|
Starts a drag (dragCopy() by default) using dragObject() |