Compile fix for QT_NO_TEXTHTMLPARSER in QtWidgets
Change-Id: If67c851cf45ca53ac4af56d4dc36db24ea896ba1 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>bb10
parent
e3240214e4
commit
18e4fd1dd1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue