11#include <QStyledItemDelegate>
37 const QStyleOptionViewItem& option,
38 const QModelIndex& index)
const override;
44 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
52 QAbstractItemModel* model,
53 const QModelIndex& index)
const override;
61 const QStyleOptionViewItem& option,
62 const QModelIndex& index)
const override;
Used to sort or filter the mod list.
Definition modlistproxymodel.h:16
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the line edits data to the name of the mod in the given row.
Definition modnamedelegate.cpp:22
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Emits modNameChanged with the new mod name.
Definition modnamedelegate.cpp:29
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates a QLineEdit object at the given index in the given view.
Definition modnamedelegate.cpp:13
void modNameChanged(int mod_id, QString name) const
Signals that a mod name has been changed by the user.
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Updates the given line edits geometry.
Definition modnamedelegate.cpp:37
ModNameDelegate(ModListProxyModel *proxy, QObject *parent)
Constructor.
Definition modnamedelegate.cpp:9
TableCellDelegate(QSortFilterProxyModel *proxy, QObject *parent)
Constructor.
Definition tablecelldelegate.cpp:7
Header for the ModListProxyModel class.
Header for the ModListView class.
Header for the TableCellDelegate class.