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;
A delegate for rendering and editing fields in User Accessible Tables (UAT).
Definition uat_delegate.h:27
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
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
Describes a single editable field within a UAT (User Accessible Table).
Definition uat.h:234