Fix warnings for -no-feature-texthtmlparser

Change-Id: Ie757e4ecb9ced14bd809f56d2d3d09274fc3bc39
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Stephan Binner 2017-04-19 07:29:02 +02:00
parent 2381332b0d
commit dde83fdeeb
2 changed files with 3 additions and 0 deletions

View File

@ -2578,6 +2578,8 @@ void QTextEdit::setText(const QString &text)
if (format == Qt::RichText)
setHtml(text);
else
#else
Q_UNUSED(format);
#endif
setPlainText(text);
}

View File

@ -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())