lib
KoProperty::BoolEdit Class Reference
Inheritance diagram for KoProperty::BoolEdit:

Detailed Description
Definition at line 33 of file booledit.h.
Public Member Functions | |
| BoolEdit (Property *property, QWidget *parent=0, const char *name=0) | |
| virtual | ~BoolEdit () |
| virtual QVariant | value () const |
| virtual void | setValue (const QVariant &value, bool emitChange=true) |
| virtual void | drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) |
Protected Slots | |
| void | slotValueChanged (int state) |
Protected Member Functions | |
| virtual void | setReadOnlyInternal (bool readOnly) |
| void | setState (int state) |
| virtual void | resizeEvent (QResizeEvent *ev) |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
Member Function Documentation
| QVariant BoolEdit::value | ( | ) | const [virtual] |
- Returns:
- the value currently entered in the item editor widget.
Implements KoProperty::Widget.
Definition at line 61 of file booledit.cpp.
| void BoolEdit::setValue | ( | const QVariant & | value, | |
| bool | emitChange = true | |||
| ) | [virtual] |
Sets the value shown in the item editor widget. Set emitChange to false if you don't want to emit propertyChanged signal.
Implements KoProperty::Widget.
Definition at line 67 of file booledit.cpp.
| void BoolEdit::drawViewer | ( | QPainter * | p, | |
| const QColorGroup & | cg, | |||
| const QRect & | r, | |||
| const QVariant & | value | |||
| ) | [virtual] |
Function to draw a property viewer when the item editor isn't shown.
Reimplemented from KoProperty::Widget.
Definition at line 105 of file booledit.cpp.
| void BoolEdit::setReadOnlyInternal | ( | bool | readOnly | ) | [protected, virtual] |
Called by setReadOnly(bool). For implementation: for read-only you should disable editing in the appropriate widget(s).
Implements KoProperty::Widget.
Definition at line 146 of file booledit.cpp.
| bool BoolEdit::eventFilter | ( | QObject * | watched, | |
| QEvent * | e | |||
| ) | [protected, virtual] |
Filters some event for main widget, eg Enter or Esc key presses.
Reimplemented from KoProperty::Widget.
Definition at line 131 of file booledit.cpp.
The documentation for this class was generated from the following files:

