mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Correction d'un souci lors du copier-coller de champs de texte dans l'editeur d'element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@825 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -285,7 +285,6 @@ QVariant PartTextField::property(const QString &property) {
|
|||||||
@param value Valeur numerique relative au changement
|
@param value Valeur numerique relative au changement
|
||||||
*/
|
*/
|
||||||
QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &value) {
|
QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &value) {
|
||||||
if (scene()) {
|
|
||||||
if (change == QGraphicsItem::ItemPositionHasChanged) {
|
if (change == QGraphicsItem::ItemPositionHasChanged) {
|
||||||
// memorise la nouvelle position "officielle" du champ de texte
|
// memorise la nouvelle position "officielle" du champ de texte
|
||||||
// cette information servira a le recentrer en cas d'ajout / retrait de lignes
|
// cette information servira a le recentrer en cas d'ajout / retrait de lignes
|
||||||
@@ -296,7 +295,6 @@ QVariant PartTextField::itemChange(GraphicsItemChange change, const QVariant &va
|
|||||||
infos -> updateForm();
|
infos -> updateForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return(QGraphicsTextItem::itemChange(change, value));
|
return(QGraphicsTextItem::itemChange(change, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user