mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Add new settings value for save or not elements informations in copy/
paste git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4601 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -169,6 +169,7 @@ void PasteDiagramCommand::undo()
|
||||
void PasteDiagramCommand::redo()
|
||||
{
|
||||
diagram -> showMe();
|
||||
QSettings settings;
|
||||
|
||||
if (first_redo) {
|
||||
first_redo = false;
|
||||
@@ -192,7 +193,8 @@ void PasteDiagramCommand::redo()
|
||||
eti->setPlainText("_");
|
||||
if (ElementTextItem *eti = e->taggedText("tension-protocol"))
|
||||
eti->setPlainText("_");
|
||||
} /*else {
|
||||
}
|
||||
if (settings.value("diagramcommands/save-label", true).toBool()){
|
||||
//Reset the information about the label, the comment and location
|
||||
e -> rElementInformations().addValue("label", "");
|
||||
e -> rElementInformations().addValue("comment", "");
|
||||
@@ -201,7 +203,7 @@ void PasteDiagramCommand::redo()
|
||||
//Reset the text field tagged "label
|
||||
if (ElementTextItem *eti = e ->taggedText("label"))
|
||||
eti -> setPlainText("_");
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
//Reset the text of conductors
|
||||
|
||||
Reference in New Issue
Block a user