(self, data: dict, force: bool = False)
| 212 | return self.loadData(json.loads(string)) |
| 213 | |
| 214 | def loadData(self, data: dict, force: bool = False) -> bool: |
| 215 | if isinstance(data, dict): |
| 216 | if force: |
| 217 | self.clear() |
| 218 | self.__loadData(data) |
| 219 | return True |
| 220 | |
| 221 | return False |
| 222 | |
| 223 | def horizontalHeaderLabels(self) -> List[str]: |
| 224 | return [self.horizontalHeaderItem(i).text() for i in range(self.columnCount())] |