minor corrections
use QPainter