![]() |
LeechCraft
0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
#include "flatitemsmodeltypedbase.h"
Inheritance diagram for LC::Util::FlatItemsModelTypedBase< T >:
Collaboration diagram for LC::Util::FlatItemsModelTypedBase< T >:Public Member Functions | |
| 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) |
| FlatItemsModelBase (QStringList headers, QObject *=nullptr) | |
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 |
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 |
Definition at line 16 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 52 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::ProgressManager::AddRow().
Here is the caller graph for this function:
|
inline |
Definition at line 63 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 81 of file flatitemsmodeltypedbase.h.
|
explicit |
Definition at line 13 of file flatitemsmodelbase.cpp.
|
inline |
Definition at line 42 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::ProgressModelRow::ChangeTotalBy(), LC::Util::ProgressManager::GetCustomData(), and LC::Util::ProgressModelRow::operator++().
Here is the caller graph for this function:
|
inlineoverrideprotectedvirtual |
Implements LC::Util::FlatItemsModelBase.
Definition at line 100 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 47 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::ProgressModelRow::SetCustomData().
Here is the caller graph for this function:
|
inline |
Definition at line 88 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::FlatItemsModelTypedBase< Item >::RemoveItem(), and LC::Util::ProgressModelRow::~ProgressModelRow().
Here is the caller graph for this function:
|
inline |
Definition at line 95 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 73 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 23 of file flatitemsmodeltypedbase.h.
|
inline |
Definition at line 32 of file flatitemsmodeltypedbase.h.
|
protected |
Definition at line 19 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::FlatItemsModelTypedBase< Item >::AddItem(), LC::Util::FlatItemsModelTypedBase< Item >::AddItems(), LC::Util::FlatItemsModelTypedBase< Item >::EditItem(), LC::Util::FlatItemsModel< T >::GetData(), LC::Util::RoledItemsModel< Item >::GetData(), LC::Util::NamedItemsModel< T >::GetData(), LC::Util::ItemsModel< T, Extensions >::GetData(), LC::Util::FlatItemsModelTypedBase< Item >::GetItems(), LC::Util::FlatItemsModelTypedBase< Item >::GetItemsCount(), LC::Util::FlatItemsModelTypedBase< Item >::GetMutItems(), LC::Util::FlatItemsModelTypedBase< Item >::RemoveItem(), LC::Util::ItemsModel< T, Extensions >::setData(), LC::Util::RoledItemsModel< Item >::SetField(), LC::Util::RoledItemsModel< Item >::SetFields(), LC::Util::FlatItemsModelTypedBase< Item >::SetItem(), and LC::Util::FlatItemsModelTypedBase< Item >::SetItems().