Improve QTextDocument::toPlainText doc related to inline images
"Embedded objects, such as images, are represented by a Unicode value U+FFFC (OBJECT REPLACEMENT CHARACTER)." Also updated the QTextImageFormat docs with the same wording. Task-number: QTBUG-44538 Change-Id: I64dd5f5be4a0ecc64b30758a72f8b4281c17924b Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>bb10
parent
7e721d24d7
commit
6c6fe766a8
|
|
@ -1142,6 +1142,9 @@ void QTextDocument::setMetaInformation(MetaInformation info, const QString &stri
|
|||
Returns the plain text contained in the document. If you want
|
||||
formatting information use a QTextCursor instead.
|
||||
|
||||
\note Embedded objects, such as images, are represented by a
|
||||
Unicode value U+FFFC (OBJECT REPLACEMENT CHARACTER).
|
||||
|
||||
\sa toHtml()
|
||||
*/
|
||||
QString QTextDocument::toPlainText() const
|
||||
|
|
|
|||
|
|
@ -3027,8 +3027,8 @@ QTextTableFormat::QTextTableFormat(const QTextFormat &fmt)
|
|||
\ingroup richtext-processing
|
||||
\ingroup shared
|
||||
|
||||
Inline images are represented by an object replacement character
|
||||
(0xFFFC in Unicode) which has an associated QTextImageFormat. The
|
||||
Inline images are represented by a Unicode value U+FFFC (OBJECT
|
||||
REPLACEMENT CHARACTER) which has an associated QTextImageFormat. The
|
||||
image format specifies a name with setName() that is used to
|
||||
locate the image. The size of the rectangle that the image will
|
||||
occupy is specified using setWidth() and setHeight().
|
||||
|
|
|
|||
Loading…
Reference in New Issue