mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Suppression de l'attribut public previous_text de la classe DiagramTextItem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@964 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -394,15 +394,14 @@ ChangeDiagramTextCommand::~ChangeDiagramTextCommand() {
|
||||
/// annule la modification de texte
|
||||
void ChangeDiagramTextCommand::undo() {
|
||||
text_item -> setPlainText(text_before);
|
||||
text_item -> previous_text = text_before;
|
||||
}
|
||||
|
||||
/// refait la modification de texte
|
||||
void ChangeDiagramTextCommand::redo() {
|
||||
if (first_redo) first_redo = false;
|
||||
else {
|
||||
if (first_redo) {
|
||||
first_redo = false;
|
||||
} else {
|
||||
text_item -> setPlainText(text_after);
|
||||
text_item -> previous_text = text_after;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user