![]() |
LeechCraft 0.6.70-16373-g319c272718
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 (QVector< T > items) |
| const QVector< T > & | GetItems () const |
| void | AddItem (const T &item) |
| void | SetItem (int idx, const T &item) |
| template<typename F > | |
| void | EditItem (int idx, F &&editor) |
| void | RemoveItem (int idx) |
| 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 |
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 | |
| QVector< 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 35 of file flatitemsmodeltypedbase.h.
References LC::Util::Filter(), and LC::Util::FlatItemsModelTypedBase< T >::Items_.
Here is the call graph for this function:
|
inline |
Definition at line 50 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelBase::columnCount(), LC::Util::Filter(), LC::Util::FlatItemsModelBase::index(), and LC::Util::FlatItemsModelTypedBase< T >::Items_.
Here is the call graph for this function:
|
explicit |
Definition at line 22 of file flatitemsmodelbase.cpp.
|
inline |
Definition at line 30 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelTypedBase< T >::Items_.
|
inlineoverrideprotectedvirtual |
Implements LC::Util::FlatItemsModelBase.
Definition at line 64 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelTypedBase< T >::Items_.
|
inline |
Definition at line 57 of file flatitemsmodeltypedbase.h.
References LC::Util::Filter(), and LC::Util::FlatItemsModelTypedBase< T >::Items_.
Here is the call graph for this function:
|
inline |
Definition at line 42 of file flatitemsmodeltypedbase.h.
References LC::Util::FlatItemsModelBase::columnCount(), LC::Util::Filter(), LC::Util::FlatItemsModelBase::index(), and LC::Util::FlatItemsModelTypedBase< T >::Items_.
Here is the call graph for this function:
|
inline |
Definition at line 23 of file flatitemsmodeltypedbase.h.
References LC::Util::Filter(), and LC::Util::FlatItemsModelTypedBase< T >::Items_.
Here is the call graph for this function:
|
protected |
Definition at line 19 of file flatitemsmodeltypedbase.h.
Referenced by LC::Util::FlatItemsModelTypedBase< T >::AddItem(), LC::Util::FlatItemsModelTypedBase< T >::EditItem(), LC::Util::FlatItemsModel< T >::GetData(), LC::Util::RoledItemsModel< T >::GetData(), LC::Util::FlatItemsModelTypedBase< T >::GetItems(), LC::Util::FlatItemsModelTypedBase< T >::GetItemsCount(), LC::Util::FlatItemsModelTypedBase< T >::RemoveItem(), LC::Util::FlatItemsModelTypedBase< T >::SetItem(), and LC::Util::FlatItemsModelTypedBase< T >::SetItems().