ToolDef inherits from QGraphicsPathItem instead