mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-28 06:40:51 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user