|
QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
#include <qgscptcityarchive.h>

Public Types | |
| enum | ViewType { Authors = 0, Selections = 1, List = 2 } |
Public Slots | |
| void | beginInsertItems (QgsCptCityDataItem *parent, int first, int last) |
| void | beginRemoveItems (QgsCptCityDataItem *parent, int first, int last) |
| void | endInsertItems () |
| void | endRemoveItems () |
Public Member Functions | |
| QgsCptCityBrowserModel (QObject *parent=nullptr, QgsCptCityArchive *archive=QgsCptCityArchive::defaultArchive(), ViewType Type=Authors) | |
| ~QgsCptCityBrowserModel () override | |
| bool | canFetchMore (const QModelIndex &parent) const override |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| void | connectItem (QgsCptCityDataItem *item) |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QgsCptCityDataItem * | dataItem (const QModelIndex &idx) const |
| Returns a list of mime that can describe model indexes. More... | |
| void | fetchMore (const QModelIndex &parent) override |
| QModelIndex | findItem (QgsCptCityDataItem *item, QgsCptCityDataItem *parent=nullptr) const |
| QModelIndex | findPath (const QString &path) |
| Returns index of a path. More... | |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QModelIndex | parent (const QModelIndex &index) const override |
| void | refresh (const QString &path) |
| void | refresh (const QModelIndex &index=QModelIndex()) |
| void | reload () |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
Protected Member Functions | |
| void | addRootItems () |
| void | removeRootItems () |
Protected Attributes | |
| QgsCptCityArchive * | mArchive = nullptr |
| QSize | mIconSize |
| QVector< QgsCptCityDataItem * > | mRootItems |
| ViewType | mViewType |
Definition at line 329 of file qgscptcityarchive.h.
| Enumerator | |
|---|---|
| Authors | |
| Selections | |
| List | |
Definition at line 335 of file qgscptcityarchive.h.
| QgsCptCityBrowserModel::QgsCptCityBrowserModel | ( | QObject * | parent = nullptr, |
| QgsCptCityArchive * | archive = QgsCptCityArchive::defaultArchive(), |
||
| ViewType | Type = Authors |
||
| ) |
Definition at line 1287 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1300 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 1305 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1599 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1613 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1633 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1429 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::connectItem | ( | QgsCptCityDataItem * | item | ) |
Definition at line 1625 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1339 of file qgscptcityarchive.cpp.
| QgsCptCityDataItem * QgsCptCityBrowserModel::dataItem | ( | const QModelIndex & | idx | ) | const |
Returns a list of mime that can describe model indexes.
Returns an object that contains serialized items of data corresponding to the list of indexes specified Handles the data supplied by a drag and drop operation that ended with the given action
Definition at line 1704 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1609 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1621 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1651 of file qgscptcityarchive.cpp.
| QModelIndex QgsCptCityBrowserModel::findItem | ( | QgsCptCityDataItem * | item, |
| QgsCptCityDataItem * | parent = nullptr |
||
| ) | const |
Definition at line 1571 of file qgscptcityarchive.cpp.
| QModelIndex QgsCptCityBrowserModel::findPath | ( | const QString & | path | ) |
Returns index of a path.
Definition at line 1435 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1329 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1419 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1389 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1554 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1562 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::refresh | ( | const QString & | path | ) |
Definition at line 1543 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::refresh | ( | const QModelIndex & | index = QModelIndex() | ) |
Definition at line 1589 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::reload | ( | ) |
Definition at line 1534 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 1318 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1402 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 408 of file qgscptcityarchive.h.
|
protected |
Definition at line 410 of file qgscptcityarchive.h.
|
protected |
Definition at line 407 of file qgscptcityarchive.h.
|
protected |
Definition at line 409 of file qgscptcityarchive.h.
1.8.11