Class: QgsCptCityBrowserModel¶
- class qgis.core.QgsCptCityBrowserModel(parent: QObject | None = None, archive: QgsCptCityArchive | None = QgsCptCityArchive.defaultArchive(), Type: QgsCptCityBrowserModel.ViewType = QgsCptCityBrowserModel.Authors)¶
Bases:
PyQt5.QtCore.QAbstractItemModel
Methods
- param parent:
- param parent:
- param parent:
- param parent:
- param item:
- param index:
virtual bool dropMimeData( const QMimeData * data, Qt.DropAction action, int row, int column, const QModelIndex & parent ); */
- param parent:
- param item:
Returns index of a path
- param index:
- param parent:
- param section:
- param row:
- param index:
- param path:
- param parent:
Signals
Attributes
- Authors = 0¶
- List = 2¶
- Selections = 1¶
- class ViewType¶
Bases:
int
- addRootItems(self)¶
- beginInsertColumns(self, parent: QModelIndex, first: int, last: int)¶
- beginInsertItems(self, parent: QgsCptCityDataItem | None, first: int, last: int)¶
- Parameters:
parent (Optional[QgsCptCityDataItem])
first (int)
last (int)
- beginInsertRows(self, parent: QModelIndex, first: int, last: int)¶
- beginMoveColumns(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationColumn: int) bool ¶
- beginMoveRows(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationRow: int) bool ¶
- beginRemoveColumns(self, parent: QModelIndex, first: int, last: int)¶
- beginRemoveItems(self, parent: QgsCptCityDataItem | None, first: int, last: int)¶
- Parameters:
parent (Optional[QgsCptCityDataItem])
first (int)
last (int)
- beginRemoveRows(self, parent: QModelIndex, first: int, last: int)¶
- beginResetModel(self)¶
- canFetchMore(self, parent: QModelIndex) bool ¶
- Parameters:
parent (QModelIndex)
- Return type:
bool
- changePersistentIndex(self, from_: QModelIndex, to: QModelIndex)¶
- changePersistentIndexList(self, from_: Iterable[QModelIndex], to: Iterable[QModelIndex])¶
- childEvent(self, a0: QChildEvent | None)¶
- columnCount(self, parent: QModelIndex = QModelIndex()) int ¶
- Parameters:
parent (QModelIndex = QModelIndex())
- Return type:
int
- connectItem(self, item: QgsCptCityDataItem | None)¶
- Parameters:
item (Optional[QgsCptCityDataItem])
- connectNotify(self, signal: QMetaMethod)¶
- createIndex(self, row: int, column: int, object: Any = None) QModelIndex ¶
- customEvent(self, a0: QEvent | None)¶
- data(self, index: QModelIndex, role: int = Qt.DisplayRole) Any ¶
- Parameters:
index (QModelIndex)
role (int = Qt.DisplayRole)
- Return type:
Any
- dataItem(self, idx: QModelIndex) QgsCptCityDataItem | None ¶
virtual bool dropMimeData( const QMimeData * data, Qt.DropAction action, int row, int column, const QModelIndex & parent ); */
- Parameters:
idx (QModelIndex)
- Return type:
Optional[QgsCptCityDataItem]
- decodeData(self, row: int, column: int, parent: QModelIndex, stream: QDataStream) bool ¶
- disconnectNotify(self, signal: QMetaMethod)¶
- encodeData(self, indexes: Iterable[QModelIndex], stream: QDataStream)¶
- endInsertColumns(self)¶
- endInsertItems(self)¶
- endInsertRows(self)¶
- endMoveColumns(self)¶
- endMoveRows(self)¶
- endRemoveColumns(self)¶
- endRemoveItems(self)¶
- endRemoveRows(self)¶
- endResetModel(self)¶
- fetchMore(self, parent: QModelIndex)¶
- Parameters:
parent (QModelIndex)
- findItem(self, item: QgsCptCityDataItem | None, parent: QgsCptCityDataItem | None = None) QModelIndex ¶
- Parameters:
item (Optional[QgsCptCityDataItem])
parent (Optional[QgsCptCityDataItem] = None)
- Return type:
QModelIndex
- findPath(self, path: str | None) QModelIndex ¶
Returns index of a path
- Parameters:
path (Optional[str])
- Return type:
QModelIndex
- flags(self, index: QModelIndex) Qt.ItemFlags ¶
- Parameters:
index (QModelIndex)
- Return type:
Qt.ItemFlags
- hasChildren(self, parent: QModelIndex = QModelIndex()) bool ¶
- Parameters:
parent (QModelIndex = QModelIndex())
- Return type:
bool
- headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.DisplayRole) Any ¶
- Parameters:
section (int)
orientation (Qt.Orientation)
role (int = Qt.DisplayRole)
- Return type:
Any
- index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) QModelIndex ¶
- Parameters:
row (int)
column (int)
parent (QModelIndex = QModelIndex())
- Return type:
QModelIndex
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- parent(self, index: QModelIndex) QModelIndex ¶
- Parameters:
index (QModelIndex)
- Return type:
QModelIndex
- persistentIndexList(self) List[QModelIndex] ¶
- receivers(self, signal: PYQT_SIGNAL) int ¶
- refresh(self, path: str | None)¶
- refresh(self, index: QModelIndex = QModelIndex()) None
- Parameters:
path (Optional[str])
- reload(self)¶
- removeRootItems(self)¶
- resetInternalData(self)¶
- rowCount(self, parent: QModelIndex = QModelIndex()) int ¶
- Parameters:
parent (QModelIndex = QModelIndex())
- Return type:
int
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- timerEvent(self, a0: QTimerEvent | None)¶