lib

KoProperty::ComboBox Class Reference

Inheritance diagram for KoProperty::ComboBox:

KoProperty::Widget KoProperty::CursorEdit List of all members.

Detailed Description

Definition at line 34 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 ()

Member Function Documentation

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::CursorEdit.

Definition at line 129 of file combobox.cpp.

void ComboBox::setProperty ( Property property  )  [virtual]

Sets the name of edited property.

Reimplemented from KoProperty::Widget.

Reimplemented in KoProperty::CursorEdit.

Definition at line 165 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 184 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::CursorEdit.

Definition at line 90 of file combobox.cpp.

QVariant ComboBox::value (  )  const [virtual]

Returns:
the value currently entered in the item editor widget.

Implements KoProperty::Widget.

Reimplemented in KoProperty::CursorEdit.

Definition at line 74 of file combobox.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys