Commit 18e4fd1d authored by Julien Brianceau's avatar Julien Brianceau
Browse files

Compile fix for QT_NO_TEXTHTMLPARSER in QtWidgets


Change-Id: If67c851cf45ca53ac4af56d4dc36db24ea896ba1
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
Showing with 2 additions and 0 deletions
......@@ -414,12 +414,14 @@ QString QAccessibleDisplay::text(QAccessible::Text t) const
if (qobject_cast<QLabel*>(object())) {
QLabel *label = qobject_cast<QLabel*>(object());
str = label->text();
#ifndef QT_NO_TEXTHTMLPARSER
if (label->textFormat() == Qt::RichText
|| (label->textFormat() == Qt::AutoText && Qt::mightBeRichText(str))) {
QTextDocument doc;
doc.setHtml(str);
str = doc.toPlainText();
}
#endif
if (label->buddy())
str = qt_accStripAmp(str);
#ifndef QT_NO_LCDNUMBER
......
Supports Markdown
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