kalarm/lib
PushButton Class Reference
#include <pushbutton.h>

Detailed Description
A QPushButton with read-only option.The PushButton class is a QPushButton with a read-only option.
The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.
Definition at line 39 of file pushbutton.h.
Public Member Functions | |
| virtual bool | isReadOnly () const |
| PushButton (const QIcon &icon, const QString &text, QWidget *parent) | |
| PushButton (const QString &text, QWidget *parent) | |
| PushButton (QWidget *parent) | |
| virtual void | setReadOnly (bool readOnly) |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
Properties | |
| bool | readOnly |
Constructor & Destructor Documentation
| PushButton::PushButton | ( | QWidget * | parent | ) | [explicit] |
Constructor.
- Parameters:
-
parent The parent object of this widget.
Definition at line 27 of file pushbutton.cpp.
Constructor for a push button which displays a text.
- Parameters:
-
text The text to show on the button. parent The parent object of this widget.
Definition at line 33 of file pushbutton.cpp.
Constructor for a push button which displays an icon and a text.
- Parameters:
-
icon The icon to show on the button. text The text to show on the button. parent The parent object of this widget.
Definition at line 39 of file pushbutton.cpp.
Member Function Documentation
| virtual bool PushButton::isReadOnly | ( | ) | const [inline, virtual] |
| void PushButton::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 84 of file pushbutton.cpp.
| void PushButton::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 101 of file pushbutton.cpp.
| void PushButton::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 78 of file pushbutton.cpp.
| void PushButton::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 56 of file pushbutton.cpp.
| void PushButton::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 67 of file pushbutton.cpp.
| void PushButton::setReadOnly | ( | bool | readOnly | ) | [virtual] |
Sets whether the push button is read-only for the user.
- Parameters:
-
readOnly True to set the widget read-only, false to enable its action.
Definition at line 45 of file pushbutton.cpp.
Property Documentation
bool PushButton::readOnly [read, write] |
Definition at line 42 of file pushbutton.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference