mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Conductor : formula and text is now two different things.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4799 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -604,9 +604,9 @@ void Terminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
||||
|
||||
QUndoCommand *undo = new AddItemCommand<Conductor *>(new_conductor, diagram());
|
||||
|
||||
if (use_properties) {
|
||||
if (use_properties)
|
||||
{
|
||||
Conductor *other = conductors_list.toList().first();
|
||||
new_conductor->setSeq = false;
|
||||
new_conductor->setOthersSequential(other);
|
||||
new_conductor->setProperties(others_properties);
|
||||
}
|
||||
@@ -615,11 +615,11 @@ void Terminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
||||
//Autonum it
|
||||
ConductorAutoNumerotation can (new_conductor, diagram(), undo);
|
||||
can.numerate();
|
||||
new_conductor->setSeq = true;
|
||||
}
|
||||
//Add undo command to the parent diagram
|
||||
diagram() -> undoStack().push(undo);
|
||||
if (use_properties) {
|
||||
if (use_properties)
|
||||
{
|
||||
Conductor *other = conductors_list.toList().first();
|
||||
new_conductor->setText("");
|
||||
new_conductor->setText(other->properties().text);
|
||||
|
||||
Reference in New Issue
Block a user