![]() |
LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
|
#include "flatitemsmodelbase.h"
Inheritance diagram for LC::Util::FlatItemsModelBase:
Collaboration diagram for LC::Util::FlatItemsModelBase:Public Member Functions | |
| 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 |
Static Public Attributes | |
| static constexpr auto | DataRole = Qt::UserRole |
Protected Member Functions | |
| virtual int | GetItemsCount () const =0 |
| virtual QVariant | GetData (int row, int col, int role) const =0 |
Definition at line 16 of file flatitemsmodelbase.h.
|
explicit |
Definition at line 13 of file flatitemsmodelbase.cpp.
|
override |
Definition at line 19 of file flatitemsmodelbase.cpp.
References index().
Referenced by LC::Util::FlatItemsModelTypedBase< T >::EditItem(), and LC::Util::FlatItemsModelTypedBase< T >::SetItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 24 of file flatitemsmodelbase.cpp.
References LC::Util::Filter(), GetData(), and index().
Here is the call graph for this function:
|
protectedpure virtual |
Implemented in LC::Util::FlatItemsModel< T >, and LC::Util::RoledItemsModel< T >.
Referenced by data().
Here is the caller graph for this function:Implemented in LC::Util::FlatItemsModelTypedBase< T >.
Referenced by index(), and rowCount().
Here is the caller graph for this function:
|
override |
Definition at line 32 of file flatitemsmodelbase.cpp.
References LC::Util::Filter().
Here is the call graph for this function:
|
override |
Definition at line 40 of file flatitemsmodelbase.cpp.
References LC::Util::Filter(), GetItemsCount(), and parent().
Referenced by columnCount(), data(), LC::Util::FlatItemsModelTypedBase< T >::EditItem(), and LC::Util::FlatItemsModelTypedBase< T >::SetItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 50 of file flatitemsmodelbase.cpp.
Referenced by LC::Util::RoledItemsModel< T >::RoledItemsModel(), index(), and rowCount().
Here is the caller graph for this function:
|
override |
Definition at line 55 of file flatitemsmodelbase.cpp.
References GetItemsCount(), and parent().
Here is the call graph for this function:Definition at line 20 of file flatitemsmodelbase.h.
Referenced by LC::Util::FlatItemsModel< T >::GetData().