26 Items_ = std::move (items);
45 emit dataChanged (
index (idx, 0),
52 std::invoke (std::forward<F> (editor),
Items_ [idx]);
53 emit dataChanged (
index (idx, 0),
59 beginRemoveRows ({}, idx, idx);
QModelIndex index(int row, int col, const QModelIndex &parent={}) const override
void EditItem(int idx, F &&editor)
int GetItemsCount() const override
const QVector< T > & GetItems() const
void SetItems(QVector< T > items)
void AddItem(const T &item)
FlatItemsModelBase(QStringList headers, QObject *=nullptr)
void SetItem(int idx, const T &item)
int columnCount(const QModelIndex &index={}) const override