valentina/scripts/personaltypes.py
Roman Telezhynskyi 70daf7c2c4 Improve Debug Helper scripts to support more custom types.
(grafted from f7ae391d018df40da98f570920cc9d35d8aeac10)

--HG--
branch : develop
2018-10-16 14:31:29 +03:00

26 lines
633 B
Python

from dumper import *
"""
Qt Creator Debugging Helpers
"""
def qdump__VSAPoint(d, value):
d.putValue('(%s, %s)' % (value.split('dd')))
d.putPlainChildren(value)
def qdump__PieceNodeAngle(d, value):
d.putValue(value.cast(value.type.name).displayEnum())
d.putNumChild(0)
def qdump__PassmarkAngleType(d, value):
d.putValue(value.cast(value.type.name).displayEnum())
d.putNumChild(0)
def qdump__PassmarkLineType(d, value):
d.putValue(value.cast(value.type.name).displayEnum())
d.putNumChild(0)
def qdump__Tool(d, value):
d.putValue(value.cast(value.type.name).displayEnum())
d.putNumChild(0)