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

Method __init__

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

Source from the content-addressed store, hash-verified

1348class QJsonObjectPrinter(QCborContainerPrinterBase):
1349
1350 def __init__(self, val):
1351 if dumper.qtVersionAtLeast(0x050f00): # also works in Qt6
1352 container_ptr = int(pointer_from_possible_totally_ordered_wrapper(val['o']['d']))
1353 else:
1354 raise RuntimeError("Qt version too old for inspecting QJsonObject")
1355 super().__init__(container_ptr, 'QJsonObject')
1356
1357class QCborValuePrinterBase(PrinterForwarder):
1358

Callers

nothing calls this directly

Calls 3

qtVersionAtLeastMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected