mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
First step for the dynamic element text : Now user can add directly from the diagram editor an editable text of an element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5005 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -105,12 +105,12 @@ void ElementsMover::continueMovement(const QPointF &movement) {
|
||||
}
|
||||
|
||||
// Move some conductors
|
||||
foreach(Conductor *conductor, moved_content_.conductorsToMove) {
|
||||
foreach(Conductor *conductor, moved_content_.m_conductors_to_move) {
|
||||
conductor -> setPos(conductor -> pos() + movement);
|
||||
}
|
||||
|
||||
// Recalcul the path of other conductors
|
||||
foreach(Conductor *conductor, moved_content_.conductorsToUpdate) {
|
||||
foreach(Conductor *conductor, moved_content_.m_conductors_to_update) {
|
||||
conductor -> updatePath();
|
||||
}
|
||||
}
|
||||
@@ -142,7 +142,7 @@ void ElementsMover::endMovement()
|
||||
moved_content_.items(dc::Elements).size() == 1 &&
|
||||
diagram_ -> project() -> autoConductor())
|
||||
{
|
||||
Element *elmt = moved_content_.elements.toList().first();
|
||||
Element *elmt = moved_content_.m_elements.toList().first();
|
||||
|
||||
int acc = elmt->AlignedFreeTerminals().size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user