(
self,
path: str,
flags=Qt.MatchFixedString
| Qt.MatchCaseSensitive
| Qt.MatchWrap
| Qt.MatchRecursive,
)
| 229 | self.setHorizontalHeaderLabels(headers) |
| 230 | |
| 231 | def findPath( |
| 232 | self, |
| 233 | path: str, |
| 234 | flags=Qt.MatchFixedString |
| 235 | | Qt.MatchCaseSensitive |
| 236 | | Qt.MatchWrap |
| 237 | | Qt.MatchRecursive, |
| 238 | ) -> Union[QJsonItem, None]: |
| 239 | indexes = self.match(self.index(0, 0), QJsonItem.PathRole, path, -1, flags) |
| 240 | indexes = [index for index in indexes if index.isValid()] |
| 241 | return self.itemFromIndex(indexes[0]) if indexes else None # type: ignore |
| 242 | |
| 243 | def updateValue( |
| 244 | self, path: str, value: Any, item: Union[QJsonItem, None] = None |
no outgoing calls