|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
An item model representing history entries in a hierarchical tree structure. More...
#include <qgshistoryentrymodel.h>

Public Member Functions | |
| QgsHistoryEntryModel (const QString &providerId=QString(), Qgis::HistoryProviderBackends backends=Qgis::HistoryProviderBackend::LocalProfile, QgsHistoryProviderRegistry *registry=nullptr, const QgsHistoryWidgetContext &context=QgsHistoryWidgetContext(), QObject *parent=nullptr) | |
| Constructor for QgsHistoryEntryModel, with the specified parent object. | |
| ~QgsHistoryEntryModel () override | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const final |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const final |
| QgsHistoryEntryNode * | index2node (const QModelIndex &index) const |
| Returns node for given index. | |
| QModelIndex | parent (const QModelIndex &child) const final |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const final |
Friends | |
| class | QgsHistoryEntryRootNode |
An item model representing history entries in a hierarchical tree structure.
Definition at line 43 of file qgshistoryentrymodel.h.
| QgsHistoryEntryModel::QgsHistoryEntryModel | ( | const QString & | providerId = QString(), |
| Qgis::HistoryProviderBackends | backends = Qgis::HistoryProviderBackend::LocalProfile, | ||
| QgsHistoryProviderRegistry * | registry = nullptr, | ||
| const QgsHistoryWidgetContext & | context = QgsHistoryWidgetContext(), | ||
| QObject * | parent = nullptr ) |
Constructor for QgsHistoryEntryModel, with the specified parent object.
If providerId is specified then the model will contain only items from the matching history provider. If backends is specified then the model will be filtered to only matching backends.
If no registry is specified then the singleton QgsHistoryProviderRegistry from QgsGui::historyProviderRegistry() will be used.
Definition at line 81 of file qgshistoryentrymodel.cpp.
|
override |
Definition at line 110 of file qgshistoryentrymodel.cpp.
|
final |
Definition at line 123 of file qgshistoryentrymodel.cpp.
|
override |
Definition at line 157 of file qgshistoryentrymodel.cpp.
|
override |
Definition at line 169 of file qgshistoryentrymodel.cpp.
|
final |
Definition at line 129 of file qgshistoryentrymodel.cpp.
| QgsHistoryEntryNode * QgsHistoryEntryModel::index2node | ( | const QModelIndex & | index | ) | const |
Returns node for given index.
Returns root node for invalid index.
Definition at line 181 of file qgshistoryentrymodel.cpp.
|
final |
Definition at line 141 of file qgshistoryentrymodel.cpp.
|
final |
Definition at line 114 of file qgshistoryentrymodel.cpp.
|
friend |
Definition at line 95 of file qgshistoryentrymodel.h.