mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
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:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user