An SUIT_DataObject-based item delegate class. More...
#include <SUIT_TreeModel.h>

Public Member Functions | |
| SUIT_ItemDelegate (QObject *=0) | |
| Constructor. More... | |
| virtual void | paint (QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const |
| Render the item in the widget. More... | |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
This class can be used to render the SUIT_DataObject-based item in the widgets like QTreeView and others. Refer to the Qt 4 documentation, model/view architecture section for more details).
| SUIT_ItemDelegate::SUIT_ItemDelegate | ( | QObject * | parent = 0 | ) |
| parent | parent object |
|
virtual |
Customizes the item colors for the specific roles.
| painter | painter |
| option | painting option |
| index | model index being rendered |
References SUIT_TreeModel::BaseColorRole, SUIT_TreeModel::HighlightedTextRole, SUIT_TreeModel::HighlightRole, isValid(), and SUIT_TreeModel::TextColorRole.
|
virtual |