Add a new property to automatically detect HTML markup and display rich text in a text field .

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2066 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2013-03-22 23:17:39 +00:00
parent 44986d2daa
commit d22df0b353
3 changed files with 7 additions and 7 deletions

View File

@@ -557,7 +557,7 @@ ChangeDiagramTextCommand::~ChangeDiagramTextCommand() {
/// annule la modification de texte
void ChangeDiagramTextCommand::undo() {
text_item -> setPlainText(text_before);
text_item -> setHtml(text_before);
}
/// refait la modification de texte
@@ -565,7 +565,7 @@ void ChangeDiagramTextCommand::redo() {
if (first_redo) {
first_redo = false;
} else {
text_item -> setPlainText(text_after);
text_item -> setHtml(text_after);
}
}