mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Implementation d'un nouvel algorithme de modification des conducteurs
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@125 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -25,7 +25,6 @@ ConducerSegment::ConducerSegment(
|
||||
Destructeur - Relie le segment precedent au suivant
|
||||
*/
|
||||
ConducerSegment::~ConducerSegment() {
|
||||
//qDebug() << "~ConducerSegment()" << (void *)this;
|
||||
if (hasPreviousSegment()) previousSegment() -> setNextSegment(nextSegment());
|
||||
if (hasNextSegment()) nextSegment() -> setPreviousSegment(previousSegment());
|
||||
}
|
||||
@@ -494,3 +493,7 @@ qreal ConducerSegment::length() const {
|
||||
return(secondPoint().y() - firstPoint().y());
|
||||
}
|
||||
}
|
||||
|
||||
QET::ConducerSegmentType ConducerSegment::type() const {
|
||||
return(isHorizontal() ? QET::Horizontal : QET::Vertical);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user