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

Detailed Description
Item for a single property displayed within Editor object.
- Author:
- Cedric Pasteur <cedric.pasteur@free.fr>
Alexander Dymo <cloudtemple@mskat.net>
Jaroslaw Staniek <js@iidea.pl>
Definition at line 51 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) | |
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 57 of file editoritem.cpp.
EditorItem::EditorItem | ( | KListView * | parent | ) |
Member Function Documentation
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.
- Todo:
- make BRANCHBOX_SIZE configurable?
Definition at line 182 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 113 of file editoritem.cpp.
Property * EditorItem::property | ( | ) |
- Returns:
- a pointer to the property associated to this item.
Definition at line 107 of file editoritem.cpp.
The documentation for this class was generated from the following files: