MCPcopy Create free account
hub / github.com/KDE/kdevelop / __init__

Method __init__

plugins/gdb/printers/qt.py:1341–1346  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

1339class QJsonArrayPrinter(QCborContainerPrinterBase):
1340
1341 def __init__(self, val):
1342 if dumper.qtVersionAtLeast(0x050f00): # also works in Qt6
1343 container_ptr = int(pointer_from_possible_totally_ordered_wrapper(val['a']['d']))
1344 else:
1345 raise RuntimeError("Qt version too old for inspecting QJsonArray")
1346 super().__init__(container_ptr, 'QJsonArray')
1347
1348class QJsonObjectPrinter(QCborContainerPrinterBase):
1349

Callers

nothing calls this directly

Calls 3

qtVersionAtLeastMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected