522
523
fontRect = fontMt.boundingRect(0, 0, contentsWidth(), contentsHeight(), 0, text);
523
524
textRect.setTopLeft(QPoint(region.topRight().x()-fontRect.width()-20, region.topRight().y()+20));
524
525
textRect.setSize( QSize(fontRect.width()+2, fontRect.height()+2) );
527
drawText(&p, QPoint(region.topRight().x()-fontRect.width()-20, region.topRight().y()+20), text);