Comment item & cross ref item : reduce the size of the rectangle where is display the comment for better visual

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3531 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-04 23:14:20 +00:00
parent 8070f7eedb
commit 9119d156c3
2 changed files with 4 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ void CommentItem::updateLabel() {
painter.setPen (pen);
painter.setFont (QETApp::diagramTextsFont(6));
QRectF drawing_rect(QPointF(0,0), QSizeF(100, 100));
QRectF drawing_rect(QPointF(0,0), QSizeF(70, 100));
QRectF text_bounding;
painter.drawText(drawing_rect, Qt::TextWordWrap | Qt::AlignHCenter, m_comment, &text_bounding);