From 5a52d83e9464d31cae31fbc0482a68a183a44077 Mon Sep 17 00:00:00 2001 From: Morten Engvoldsen Date: Mon, 16 Nov 2009 13:44:34 +0100 Subject: Doc: Added short explanation to textEdit->toPlainText() Explaining(nbsp) the exception in character conversion. --- src/gui/widgets/qtextedit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/qtextedit.cpp b/src/gui/widgets/qtextedit.cpp index 88502e3..fc847b0 100644 --- a/src/gui/widgets/qtextedit.cpp +++ b/src/gui/widgets/qtextedit.cpp @@ -530,7 +530,9 @@ void QTextEditPrivate::_q_ensureVisible(const QRectF &_rect) when the property is set. If the text edit has another content type, it will not be replaced - by plain text if you call toPlainText(). + by plain text if you call toPlainText(). The only exception to this + is the non-break space, \i{nbsp;}, that will be converted into + standard space. By default, for an editor with no contents, this property contains an empty string. -- cgit v0.12