valentina/scripts/personaltypes.py
Roman Telezhynskyi 41674571bb Improve Debug Helper scripts to support more custom types.
--HG--
branch : release
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)