|
QGIS API Documentation 4.3.0-Master (16eddb2670e)
|
A custom item model for display of CPT City color palettes. More...
#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 the data item corresponding to the given index. | |
| void | fetchMore (const QModelIndex &parent) override |
| QModelIndex | findItem (QgsCptCityDataItem *item, QgsCptCityDataItem *parent=nullptr) const |
| QModelIndex | findPath (const QString &path) |
| Returns index of a path. | |
| 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 QModelIndex &index=QModelIndex()) |
| Refresh item children. | |
| void | refresh (const QString &path) |
| Refresh the item specified by path. | |
| void | reload () |
| Reload the whole model. | |
| 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 |
A custom item model for display of CPT City color palettes.
Definition at line 396 of file qgscptcityarchive.h.
| Enumerator | |
|---|---|
| Authors | |
| Selections | |
| List | |
Definition at line 401 of file qgscptcityarchive.h.
| QgsCptCityBrowserModel::QgsCptCityBrowserModel | ( | QObject * | parent = nullptr, |
| QgsCptCityArchive * | archive = QgsCptCityArchive::defaultArchive(), | ||
| ViewType | Type = Authors ) |
Definition at line 1300 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1312 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 1317 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1603 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1617 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1637 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1432 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::connectItem | ( | QgsCptCityDataItem * | item | ) |
Definition at line 1629 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1345 of file qgscptcityarchive.cpp.
| QgsCptCityDataItem * QgsCptCityBrowserModel::dataItem | ( | const QModelIndex & | idx | ) | const |
Returns the data item corresponding to the given index.
Definition at line 1665 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1613 of file qgscptcityarchive.cpp.
|
slot |
Definition at line 1625 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1655 of file qgscptcityarchive.cpp.
| QModelIndex QgsCptCityBrowserModel::findItem | ( | QgsCptCityDataItem * | item, |
| QgsCptCityDataItem * | parent = nullptr ) const |
Definition at line 1575 of file qgscptcityarchive.cpp.
| QModelIndex QgsCptCityBrowserModel::findPath | ( | const QString & | path | ) |
Returns index of a path.
Definition at line 1438 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1335 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1422 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1392 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1558 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1566 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::refresh | ( | const QModelIndex & | index = QModelIndex() | ) |
Refresh item children.
Definition at line 1593 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::refresh | ( | const QString & | path | ) |
Refresh the item specified by path.
Definition at line 1547 of file qgscptcityarchive.cpp.
| void QgsCptCityBrowserModel::reload | ( | ) |
Reload the whole model.
Definition at line 1538 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 1330 of file qgscptcityarchive.cpp.
|
override |
Definition at line 1405 of file qgscptcityarchive.cpp.
|
protected |
Definition at line 460 of file qgscptcityarchive.h.
|
protected |
Definition at line 462 of file qgscptcityarchive.h.
|
protected |
Definition at line 459 of file qgscptcityarchive.h.
|
protected |
Definition at line 461 of file qgscptcityarchive.h.