the brush could be an area when the area mode is on.
change the qdrawLine in brush to qdrawSegment