![]() |
LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
|
#include "flatitemsmodeltypedbase.h"
Public Member Functions | |
| FlatItemsModelTypedBase (QStringList headers, QObject *parent=nullptr) | |
| void | SetItems (QList< T > items) |
| template<typename U> requires std::is_constructible_v<T, U&&> | |
| void | SetItems (QList< U > items) |
| const QList< T > & | GetItems () const |
| QList< T > & | GetMutItems () |
| qsizetype | AddItem (const T &item) |
| void | AddItems (const QList< T > &items) |
| void | SetItem (int idx, const T &item) |
| template<typename F> | |
| void | EditItem (int idx, F &&editor) |
| void | RemoveItem (int idx) |
| void | RemoveItem (QList< T >::const_iterator it) |
| Public Member Functions inherited from LC::Util::FlatItemsModelBase | |
| FlatItemsModelBase (QStringList headers, QObject *=nullptr) | |
| int | columnCount (const QModelIndex &index={}) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| QModelIndex | index (int row, int col, const QModelIndex &parent={}) const override |
| QModelIndex | parent (const QModelIndex &) const override |
| int | rowCount (const QModelIndex &parent={}) const override |
| void | SetGlobalData (const QVariant &data, int role) |
Protected Member Functions | |
| int | GetItemsCount () const override |
| auto & | ItemAt (this auto &&self, int row, const std::source_location &loc=std::source_location::current()) |
| Protected Member Functions inherited from LC::Util::FlatItemsModelBase | |
| virtual QVariant | GetData (int row, int col, int role) const =0 |
Protected Attributes | |
| QList< T > | Items_ |
Additional Inherited Members | |
| Static Public Attributes inherited from LC::Util::FlatItemsModelBase | |
| static constexpr auto | DataRole = Qt::UserRole |
| Static Protected Member Functions inherited from LC::Util::FlatItemsModelBase | |
| static void | NotifyRowOutOfRange (const FlatItemsModelBase &model, int row, int count, const std::source_location &loc) |
Definition at line 18 of file flatitemsmodeltypedbase.h.
|
inlineexplicit |
Definition at line 23 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelBase::FlatItemsModelBase(), LC::Util::InstallModelSanitizer(), and LC::Util::FlatItemsModelBase::parent().
Referenced by LC::Util::ItemsModel< T, Extensions >::ItemsModel(), LC::Util::NamedItemsModel< T >::NamedItemsModel(), LC::Util::RoledItemsModel< T >::RoledItemsModel(), LC::Util::RoledItemsModel< T >::RoledItemsModel(), and LC::Util::ItemsModel< T, Extensions >::flags().
|
inline |
Definition at line 58 of file flatitemsmodeltypedbase.h.
References Items_.
|
inline |
Definition at line 69 of file flatitemsmodeltypedbase.h.
References Items_.
|
inline |
Definition at line 87 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelBase::columnCount(), LC::Util::FlatItemsModelBase::index(), and ItemAt().
|
inline |
Definition at line 48 of file flatitemsmodeltypedbase.h.
References Items_.
|
inlineoverrideprotectedvirtual |
Implements LC::Util::FlatItemsModelBase.
Definition at line 107 of file flatitemsmodeltypedbase.h.
References Items_.
|
inline |
Definition at line 53 of file flatitemsmodeltypedbase.h.
References Items_.
|
inlineprotected |
Definition at line 112 of file flatitemsmodeltypedbase.h.
Referenced by EditItem(), LC::Util::FlatItemsModel< T >::GetData(), LC::Util::ItemsModel< T, Extensions >::GetData(), LC::Util::NamedItemsModel< T >::GetData(), LC::Util::RoledItemsModel< T >::GetData(), LC::Util::ItemsModel< T, Extensions >::setData(), LC::Util::RoledItemsModel< T >::SetField(), LC::Util::RoledItemsModel< T >::SetFields(), and SetItem().
|
inline |
Definition at line 94 of file flatitemsmodeltypedbase.h.
References Items_.
Referenced by LC::Util::ProgressModelRow::~ProgressModelRow(), and RemoveItem().
|
inline |
Definition at line 102 of file flatitemsmodeltypedbase.h.
References Items_, and RemoveItem().
|
inline |
Definition at line 79 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelBase::columnCount(), LC::Util::FlatItemsModelBase::index(), and ItemAt().
|
inline |
Definition at line 29 of file flatitemsmodeltypedbase.h.
References Items_.
|
inline |
Definition at line 38 of file flatitemsmodeltypedbase.h.
References Items_.
|
protected |
Definition at line 21 of file flatitemsmodeltypedbase.h.
Referenced by AddItem(), AddItems(), GetItems(), GetItemsCount(), GetMutItems(), RemoveItem(), RemoveItem(), SetItems(), and SetItems().