Diagram editor: fixed a text position bug that occurred only when dropping elements onto diagrams.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1866 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-05-27 15:18:22 +00:00
parent 800aa588bf
commit cb7cbbf0e1
2 changed files with 9 additions and 0 deletions

View File

@@ -181,6 +181,14 @@ qreal ElementTextItem::originalRotationAngle() const {
return(original_rotation_angle_);
}
/**
Set the font used to render the text item to \a font.
*/
void ElementTextItem::setFont(const QFont &font) {
DiagramTextItem::setFont(font);
adjustItemPosition(1);
}
/**
Cette methode s'assure que la position de l'ElementTextItem est coherente
en ajustant :