summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Glebocki <mglb@arccos-1.net>2016-09-05 21:13:19 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-08 21:55:38 (GMT)
commit02a5ed8f5fa324ed12e1d4dab978e33a8e9fb4b3 (patch)
treeafa13423be7a896227597b09ebf2a3cc7418ec54
parent7e429544a6f5530365c22ca5f83b4fc4e97de658 (diff)
[lib] Insert chat text edit's history as plain text
Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com> REVIEW: 128842
-rw-r--r--lib/chat-text-edit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chat-text-edit.cpp b/lib/chat-text-edit.cpp
index 4d16e20..7e52d5d 100644
--- a/lib/chat-text-edit.cpp
+++ b/lib/chat-text-edit.cpp
@@ -228,13 +228,13 @@ void ChatTextEdit::getHistory(bool up)
addHistory(toPlainText());
}
- setText(QLatin1String(""));
+ setPlainText(QLatin1String(""));
} else {
m_historyPos--;
}
}
- setText(m_history[m_historyPos]);
+ setPlainText(m_history[m_historyPos]);
moveCursor(QTextCursor::End, QTextCursor::MoveAnchor);
}
@@ -375,7 +375,7 @@ void ChatTextEdit::completeNick()
}
// Set new text and cursor position
- setText(newLine);
+ setPlainText(newLine);
cursor.setPosition(pos);
setTextCursor(cursor);
}