20#include <QStyledItemDelegate>
44 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
51 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
59 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
67 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
82 uat_field_t *indexToField(
const QModelIndex &index)
const;
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the data to be displayed in the editor widget.
Definition uat_delegate.cpp:135
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Updates the geometry of the editor widget based on the style option.
Definition uat_delegate.cpp:200
void pathHasChanged(QString newPath)
Handles the event when a file or directory path has changed.
Definition uat_delegate.cpp:216
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates the editor widget for the specified item.
Definition uat_delegate.cpp:44
UatDelegate(QObject *parent=0)
Constructs a new UatDelegate object.
Definition uat_delegate.cpp:34
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Saves the data from the editor widget back into the model.
Definition uat_delegate.cpp:168
struct _uat_field_t uat_field_t
Describes a single editable field within a UAT (User Accessible Table).