Method
__init__
(
self,
parent: QObject = None,
data: dict = None,
)
Source from the content-addressed store, hash-verified
| 194 | |
| 195 | class QJsonModel(QStandardItemModel): |
| 196 | def __init__( |
| 197 | self, |
| 198 | parent: QObject = None, |
| 199 | data: dict = None, |
| 200 | ) -> None: |
| 201 | super().__init__(parent) |
| 202 | self.setHorizontalHeaderLabels(["Key", "Value"]) |
| 203 | self.loadData(data) |
| 204 | |
| 205 | def loadFile( |
| 206 | self, file: str, encoding: str = "utf-8", errors: str = "ignore" |
Callers
nothing calls this directly
Tested by
no test coverage detected