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

Public Member Functions | |
| SUIT_ItemDelegate (QObject *=0) | |
| Constructor. | |
| virtual void | paint (QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const |
| Render the item in the widget. | |
| 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 |
| void SUIT_ItemDelegate::paint | ( | QPainter * | painter, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const [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, and SUIT_TreeModel.TextColorRole.
| QSize SUIT_ItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, |
| const QModelIndex & | index | ||
| ) | const [virtual] |