![]() |
Crossfire Resources Editor
|
Allow the edition of a multiline item. More...
#include <CREMultilineItemDelegate.h>
Inheritance diagram for CREMultilineItemDelegate:
Collaboration diagram for CREMultilineItemDelegate:Public Member Functions | |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| CREMultilineItemDelegate (QObject *parent, bool asStringList=true, bool trimEmpty=false) | |
| Standard constructor. More... | |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
| virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
| virtual | ~CREMultilineItemDelegate () |
Private Attributes | |
| bool | myAsStringList |
| bool | myTrimEmpty |
Allow the edition of a multiline item.
Definition at line 19 of file CREMultilineItemDelegate.h.
| CREMultilineItemDelegate::CREMultilineItemDelegate | ( | QObject * | parent, |
| bool | asStringList = true, |
||
| bool | trimEmpty = false |
||
| ) |
Standard constructor.
| parent | ancestor of this item. |
| asStringList | if true then data is a QStringList, else a QString. |
| trimEmpty | if true then all empty items will be removed, onyl significant if asStringList is true. |
Definition at line 17 of file CREMultilineItemDelegate.cpp.
|
virtual |
Definition at line 22 of file CREMultilineItemDelegate.cpp.
|
overridevirtual |
Definition at line 26 of file CREMultilineItemDelegate.cpp.
|
overridevirtual |
Definition at line 33 of file CREMultilineItemDelegate.cpp.
References myAsStringList.
|
overridevirtual |
Definition at line 58 of file CREMultilineItemDelegate.cpp.
References convert(), myAsStringList, and myTrimEmpty.
Here is the call graph for this function:
|
private |
Definition at line 36 of file CREMultilineItemDelegate.h.
Referenced by setEditorData(), and setModelData().
|
private |
Definition at line 37 of file CREMultilineItemDelegate.h.
Referenced by setModelData().