38 static QString displayDesc(
char display);
39 static QString alignDesc(
char xalign);
41 QWidget * createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
42 const QModelIndex &index)
const override;
44 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
45 void setModelData(QWidget *editor, QAbstractItemModel *model,
46 const QModelIndex &index)
const override;
48 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
49 const QModelIndex &index)
const override;
71 OriginalType = Qt::UserRole,
75 static bool displayEnabled(
const QModelIndex &index,
bool &displayStrings,
bool &displayDetails);
80 void deleteEntry(
int row);
83 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
84 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
85 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
86 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
87 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
89 virtual QStringList mimeTypes()
const;
90 virtual QMimeData *mimeData(
const QModelIndexList &indexes)
const;
91 virtual Qt::DropActions supportedDropActions()
const;
92 virtual bool canDropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent)
const;
93 virtual bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent);
95 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
98 QString headerTitle(
int section)
const;