mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-19 10:09:58 +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_);
|
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
|
Cette methode s'assure que la position de l'ElementTextItem est coherente
|
||||||
en ajustant :
|
en ajustant :
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ class ElementTextItem : public DiagramTextItem {
|
|||||||
QPointF originalPos() const;
|
QPointF originalPos() const;
|
||||||
void setOriginalRotationAngle(const qreal &);
|
void setOriginalRotationAngle(const qreal &);
|
||||||
qreal originalRotationAngle() const;
|
qreal originalRotationAngle() const;
|
||||||
|
virtual void setFont(const QFont &);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void adjustItemPosition(int = 0);
|
void adjustItemPosition(int = 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user