Custom item delegate for the paths list widget. More...
Public Member Functions | |
Delegate (QtxPathListEdit *, QObject *=0) | |
Constructor. More... | |
virtual | ~Delegate () |
Destructor. More... | |
virtual QWidget * | createEditor (QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const |
Create editor widget. More... | |
virtual void | setModelData (QWidget *, QAbstractItemModel *, const QModelIndex &) const |
Set modified data back to the data model. More... | |
virtual void | setEditorData (QWidget *, const QModelIndex &) const |
Set data from the data model to the editor. More... | |
virtual void | paint (QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const |
Customize paint operation. More... | |
Protected Member Functions | |
virtual void | drawFocus (QPainter *, const QStyleOptionViewItem &, const QRect &) const |
Customize drawing selection focus operation. More... | |
Private Attributes | |
QtxPathListEdit * | myPathEdit |
Custom item delegate for the paths list widget.
QtxPathListEdit::Delegate::Delegate | ( | QtxPathListEdit * | pe, |
QObject * | parent = 0 |
||
) |
Constructor.
pe | path list editor |
parent | parent widget |
|
virtual |
Destructor.
|
virtual |
Create editor widget.
parent | parent widget |
option | style option |
index | data model index |
|
protectedvirtual |
Customize drawing selection focus operation.
painter | painter |
option | style option |
rect | selection rectangle |
|
virtual |
Customize paint operation.
painter | painter |
option | style option |
index | data model index |
|
virtual |
Set data from the data model to the editor.
editor | editor widget |
index | data model index |
|
virtual |
Set modified data back to the data model.
editor | editor widget |
model | data model |
index | data model index |
|
private |