Commit 24ea4d8a authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

TextArea: use TextEdit::append()


Change-Id: I30f23198cd82f26f92d3b7cae47e2ac64d1fad9b
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
parent 27764b11
Branches
Tags
No related merge requests found
Showing with 1 addition and 3 deletions
......@@ -412,9 +412,7 @@ ScrollView {
Appends \a string as a new line to the end of the text area.
*/
function append (string) {
if (length)
string = "\n" + string
text += string
edit.append(string)
__verticalScrollBar.value = __verticalScrollBar.maximumValue
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment