Fix warnings for -no-feature-texthtmlparser
Change-Id: Ie757e4ecb9ced14bd809f56d2d3d09274fc3bc39 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
2381332b0d
commit
dde83fdeeb
@ -2578,6 +2578,8 @@ void QTextEdit::setText(const QString &text)
|
||||
if (format == Qt::RichText)
|
||||
setHtml(text);
|
||||
else
|
||||
#else
|
||||
Q_UNUSED(format);
|
||||
#endif
|
||||
setPlainText(text);
|
||||
}
|
||||
|
@ -3116,6 +3116,7 @@ void QWidgetTextControlPrivate::append(const QString &text, Qt::TextFormat forma
|
||||
tmp.insertText(text);
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(format);
|
||||
tmp.insertText(text);
|
||||
#endif // QT_NO_TEXTHTMLPARSER
|
||||
if (!cursor.hasSelection())
|
||||
|
Loading…
Reference in New Issue
Block a user