lib
KoProperty::EditorItem Class Reference
#include <editoritem.h>
Inheritance diagram for KoProperty::EditorItem:

Detailed Description
Item for a single property displayed within Editor object.
Definition at line 47 of file editoritem.h.
Public Types | |
typedef QAsciiDict< EditorItem > | Dict |
Public Member Functions | |
EditorItem (Editor *editor, EditorItem *parent, Property *property, QListViewItem *after=0) | |
EditorItem (KListView *parent) | |
EditorItem (EditorItem *parent, const QString &text) | |
EditorItem (EditorItem *parent, EditorItem *after, const QString &text) | |
virtual | ~EditorItem () |
Property * | property () |
Protected Member Functions | |
virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
virtual void | paintBranches (QPainter *p, const QColorGroup &cg, int w, int y, int h) |
virtual void | paintFocus (QPainter *p, const QColorGroup &cg, const QRect &r) |
virtual int | compare (QListViewItem *i, int col, bool ascending) const |
virtual void | setHeight (int height) |
Protected Attributes | |
EditorItemPrivate * | d |
Constructor & Destructor Documentation
EditorItem::EditorItem | ( | Editor * | editor, | |
EditorItem * | parent, | |||
Property * | property, | |||
QListViewItem * | after = 0 | |||
) |
Creates an EditorItem child of parent, associated to property. It property has not desctiption set, its name (i.e. not i18n'ed) is reused.
Definition at line 257 of file editoritem.cpp.
EditorItem::EditorItem | ( | KListView * | parent | ) |
Member Function Documentation
Property * EditorItem::property | ( | ) |
- Returns:
- a pointer to the property associated to this item.
Definition at line 316 of file editoritem.cpp.
void EditorItem::paintCell | ( | QPainter * | p, | |
const QColorGroup & | cg, | |||
int | column, | |||
int | width, | |||
int | align | |||
) | [protected, virtual] |
Reimplemented from KListViewItem to draw custom contents. Properties names are wriiten in bold if modified. Also takes care of drawing borders around the cells as well as pixmaps or colors if necessary.
- Todo:
- custom color?
- Todo:
- custom color?
Reimplemented from KListViewItem.
Reimplemented in KoProperty::EditorGroupItem.
Definition at line 322 of file editoritem.cpp.
void EditorItem::paintBranches | ( | QPainter * | p, | |
const QColorGroup & | cg, | |||
int | w, | |||
int | y, | |||
int | h | |||
) | [protected, virtual] |
Reimplemented from KListViewItem to draw custom contents. It takes care of drawing the [+] and [-] signs only if the item has children.
Definition at line 384 of file editoritem.cpp.
The documentation for this class was generated from the following files: