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

Detailed Description
Definition at line 30 of file combobox.h.
Public Member Functions | |
ComboBox (Property *property, QWidget *parent=0, const char *name=0) | |
virtual | ~ComboBox () |
virtual QVariant | value () const |
virtual void | setValue (const QVariant &value, bool emitChange=true) |
virtual void | setProperty (Property *property) |
virtual void | drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) |
Protected Slots | |
void | slotValueChanged (int value) |
Protected Member Functions | |
virtual void | setReadOnlyInternal (bool readOnly) |
QString | keyForValue (const QVariant &value) |
void | fillBox () |
Protected Attributes | |
KComboBox * | m_edit |
bool | m_setValueEnabled: 1 |
Member Function Documentation
QVariant ComboBox::value | ( | ) | const [virtual] |
- Returns:
- the value currently entered in the item editor widget.
Implements KoProperty::Widget.
Reimplemented in KoProperty::ThreeStateBoolEdit, and KoProperty::CursorEdit.
Definition at line 64 of file combobox.cpp.
void ComboBox::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.
Reimplemented in KoProperty::ThreeStateBoolEdit, and KoProperty::CursorEdit.
Definition at line 80 of file combobox.cpp.
void ComboBox::setProperty | ( | Property * | property | ) | [virtual] |
Sets the name of edited property.
Reimplemented from KoProperty::Widget.
Reimplemented in KoProperty::ThreeStateBoolEdit, and KoProperty::CursorEdit.
Definition at line 153 of file combobox.cpp.
void ComboBox::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.
Reimplemented in KoProperty::ThreeStateBoolEdit, and KoProperty::CursorEdit.
Definition at line 119 of file combobox.cpp.
void ComboBox::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 172 of file combobox.cpp.
The documentation for this class was generated from the following files: