Class: QgsCptCityDataItem¶
-
class
qgis.core.
QgsCptCityDataItem
¶ Bases:
PyQt5.QtCore.QObject
Base class for all items in the model
Methods
- rtype
bool
- rtype
List[QAction]
- param child
- rtype
object
- rtype
object
- param child
- param other
- param items
- rtype
bool
- rtype
bool
icon(self, size: QSize) -> QIcon
- rtype
str
- rtype
bool
- rtype
bool
- rtype
int
- rtype
str
- rtype
QWidget
- rtype
QgsCptCityDataItem
- rtype
str
- param child
- rtype
int
- param icon
- param parent
- param msg
- rtype
str
- rtype
str
- rtype
QgsCptCityDataItem.Type
Signals
beginInsertItems(self,
QgsCptCityDataItem
, int, int) [signal]beginRemoveItems(self,
QgsCptCityDataItem
, int, int) [signal]endInsertItems(self) [signal]
endRemoveItems(self) [signal]
Attributes
-
AllRamps
= 4¶
-
Collection
= 1¶
-
ColorRamp
= 0¶
-
Directory
= 2¶
-
Selection
= 3¶
-
class
Type
¶ Bases:
int
-
acceptDrop
(self) → bool¶ - Return type
bool
-
actions
(self) → List[QAction]¶ - Return type
List[QAction]
-
addChildItem
(self, child: QgsCptCityDataItem, refresh: bool = False)¶ - Parameters
child (QgsCptCityDataItem) –
refresh (bool = False) –
-
beginInsertItems
¶ beginInsertItems(self,
QgsCptCityDataItem
, int, int) [signal]
-
beginRemoveItems
¶ beginRemoveItems(self,
QgsCptCityDataItem
, int, int) [signal]
-
childEvent
()¶
-
children
(self) → object¶ - Return type
object
-
connectNotify
()¶
-
createChildren
(self) → object¶ - Return type
object
-
customEvent
()¶
-
deleteChildItem
(self, child: QgsCptCityDataItem)¶ - Parameters
child (QgsCptCityDataItem) –
-
disconnectNotify
()¶
-
endInsertItems
¶ endInsertItems(self) [signal]
-
endRemoveItems
¶ endRemoveItems(self) [signal]
-
equal
(self, other: QgsCptCityDataItem) → bool¶ - Parameters
other (QgsCptCityDataItem) –
- Return type
bool
-
findItem
(items: object, item: QgsCptCityDataItem) → int¶ - Parameters
items (object) –
item (QgsCptCityDataItem) –
- Return type
int
-
handleDrop
(self, QMimeData, Qt.DropAction) → bool¶ - Return type
bool
-
hasChildren
(self) → bool¶ - Return type
bool
-
icon
(self) → QIcon¶ icon(self, size: QSize) -> QIcon
- Return type
QIcon
-
info
(self) → str¶ - Return type
str
-
isPopulated
(self) → bool¶ - Return type
bool
-
isSignalConnected
()¶
-
isValid
(self) → bool¶ - Return type
bool
-
leafCount
(self) → int¶ - Return type
int
-
name
(self) → str¶ - Return type
str
-
paramWidget
(self) → QWidget¶ - Return type
QWidget
-
parent
(self) → QgsCptCityDataItem¶ - Return type
-
path
(self) → str¶ - Return type
str
-
populate
(self)¶
-
receivers
()¶
-
refresh
(self)¶
-
removeChildItem
(self, child: QgsCptCityDataItem) → QgsCptCityDataItem¶ - Parameters
child (QgsCptCityDataItem) –
- Return type
-
rowCount
(self) → int¶ - Return type
int
-
sender
()¶
-
senderSignalIndex
()¶
-
setIcon
(self, icon: QIcon)¶ - Parameters
icon (QIcon) –
-
setParent
(self, parent: QgsCptCityDataItem)¶ - Parameters
parent (QgsCptCityDataItem) –
-
setToolTip
(self, msg: str)¶ - Parameters
msg (str) –
-
shortInfo
(self) → str¶ - Return type
str
-
timerEvent
()¶
-
toolTip
(self) → str¶ - Return type
str
-
type
(self) → QgsCptCityDataItem.Type¶ - Return type