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:
scorpio810
2016-08-04 09:54:43 +00:00
parent 13b8a2e6a0
commit 96f87271da
3 changed files with 10 additions and 2 deletions

View File

@@ -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