mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-07 22:22:33 +01:00
element editor, fix bug in line editor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3101 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -231,7 +231,7 @@ void PartLine::setY1(qreal y1) {
|
|||||||
void PartLine::setX2(qreal x2) {
|
void PartLine::setX2(qreal x2) {
|
||||||
QPointF p = line().p2();
|
QPointF p = line().p2();
|
||||||
p.setX(x2);
|
p.setX(x2);
|
||||||
setLine(QLineF(line().p2(), p));
|
setLine(QLineF(line().p1(), p));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -242,7 +242,7 @@ void PartLine::setX2(qreal x2) {
|
|||||||
void PartLine::setY2(qreal y2) {
|
void PartLine::setY2(qreal y2) {
|
||||||
QPointF p = line().p2();
|
QPointF p = line().p2();
|
||||||
p.setY(y2);
|
p.setY(y2);
|
||||||
setLine(QLineF(line().p2(), p));
|
setLine(QLineF(line().p1(), p));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user