KCommonDecorationButton Class Reference
#include <kcommondecoration.h>
Detailed Description
Title bar buttons of KCommonDecoration need to inherit this class.
Definition at line 290 of file kcommondecoration.h.
Public Types | |
enum | { ManualReset = 1 << 0, SizeChange = 1 << 1, ToggleChange = 1 << 2, StateChange = 1 << 3, IconChange = 1 << 4, DecorationReset = 1 << 5 } |
Public Member Functions | |
KCommonDecorationButton (ButtonType type, KCommonDecoration *parent, const char *name) | |
virtual void | reset (unsigned long changed)=0 |
KCommonDecoration * | decoration () const |
ButtonType | type () const |
bool | isLeft () const |
void | setRealizeButtons (int btns) |
void | setSize (const QSize &s) |
void | setTipText (const QString &tip) |
ButtonState | lastMousePress () const |
QSize | sizeHint () const |
Protected Member Functions | |
void | setToggleButton (bool toggle) |
void | setOn (bool on) |
void | setLeft (bool left) |
void | mousePressEvent (QMouseEvent *e) |
void | mouseReleaseEvent (QMouseEvent *e) |
Friends | |
class | KCommonDecoration |
Member Enumeration Documentation
|
These flags specify what has changed, e.g. the reason for a reset().
Definition at line 301 of file kcommondecoration.h. |
Member Function Documentation
|
Definition at line 889 of file kcommondecoration.cpp. |
|
Whether the button is left of the titlebar or not.
Definition at line 899 of file kcommondecoration.cpp. |
|
The mouse button that has been clicked last time.
Definition at line 344 of file kcommondecoration.h. |
|
Initialize the button after size change etc.
|
|
Set which mouse buttons the button should honor. Used e.g. to prevent accidental right mouse clicks. Definition at line 909 of file kcommondecoration.cpp. |
|
Set the button size.
Definition at line 914 of file kcommondecoration.cpp. |
|
Set/update the button's tool tip.
Definition at line 929 of file kcommondecoration.cpp. |
|
Definition at line 894 of file kcommondecoration.cpp. |
The documentation for this class was generated from the following files: