Class: QgsCptCityBrowserModel

class qgis.core.QgsCptCityBrowserModel(parent: QObject = None, archive: QgsCptCityArchive = QgsCptCityArchive.defaultArchive(), Type: QgsCptCityBrowserModel.ViewType = QgsCptCityBrowserModel.Authors)

Bases: PyQt5.QtCore.QAbstractItemModel

Enums

Methods

addRootItems
beginInsertColumns
beginInsertItems
beginInsertRows
beginMoveColumns
beginMoveRows
beginRemoveColumns
beginRemoveItems
beginRemoveRows
beginResetModel
canFetchMore
changePersistentIndex
changePersistentIndexList
childEvent
columnCount
connectItem
connectNotify
createIndex
customEvent
data
dataItem virtual bool dropMimeData( const QMimeData * data, Qt.DropAction action, int row, int column, const QModelIndex & parent ); */
decodeData
disconnectNotify
encodeData
endInsertColumns
endInsertItems
endInsertRows
endMoveColumns
endMoveRows
endRemoveColumns
endRemoveItems
endRemoveRows
endResetModel
fetchMore
findItem
findPath Returns index of a path
flags
hasChildren
headerData
index
isSignalConnected
parent
persistentIndexList
receivers
refresh refresh(self, index: QModelIndex = QModelIndex())
reload
removeRootItems
resetInternalData
rowCount
sender
senderSignalIndex
timerEvent

Signals

Attributes

Authors
List
Selections
Authors = 0
List = 2
Selections = 1
class ViewType

Bases: int

addRootItems(self)
beginInsertColumns()
beginInsertItems(self, parent: QgsCptCityDataItem, first: int, last: int)
beginInsertRows()
beginMoveColumns()
beginMoveRows()
beginRemoveColumns()
beginRemoveItems(self, parent: QgsCptCityDataItem, first: int, last: int)
beginRemoveRows()
beginResetModel()
canFetchMore(self, parent: QModelIndex) → bool
changePersistentIndex()
changePersistentIndexList()
childEvent()
columnCount(self, parent: QModelIndex = QModelIndex()) → int
connectItem(self, item: QgsCptCityDataItem)
connectNotify()
createIndex()
customEvent()
data(self, index: QModelIndex, role: int = Qt.DisplayRole) → Any
dataItem(self, idx: QModelIndex) → QgsCptCityDataItem

virtual bool dropMimeData( const QMimeData * data, Qt.DropAction action, int row, int column, const QModelIndex & parent ); */

decodeData()
disconnectNotify()
encodeData()
endInsertColumns()
endInsertItems(self)
endInsertRows()
endMoveColumns()
endMoveRows()
endRemoveColumns()
endRemoveItems(self)
endRemoveRows()
endResetModel()
fetchMore(self, parent: QModelIndex)
findItem(self, item: QgsCptCityDataItem, parent: QgsCptCityDataItem = None) → QModelIndex
findPath(self, path: str) → QModelIndex

Returns index of a path

flags(self, index: QModelIndex) → Qt.ItemFlags
hasChildren(self, parent: QModelIndex = QModelIndex()) → bool
headerData(self, section: int, orientation: Qt.Orientation, role: int = Qt.DisplayRole) → Any
index(self, row: int, column: int, parent: QModelIndex = QModelIndex()) → QModelIndex
isSignalConnected()
parent(self, index: QModelIndex) → QModelIndex
persistentIndexList()
receivers()
refresh(self, path: str)

refresh(self, index: QModelIndex = QModelIndex())

reload(self)
removeRootItems(self)
resetInternalData()
rowCount(self, parent: QModelIndex = QModelIndex()) → int
sender()
senderSignalIndex()
timerEvent()