Commit 6fae048a authored by hjk's avatar hjk
Browse files

Add some QChar::unicode() calls to brush over deprecation warning


Change-Id: I16383254373289584818cd2b590d51d9e4a649c5
Reviewed-by: default avatarMarc Mutz <marc.mutz@kdab.com>
Showing with 1 addition and 1 deletion
......@@ -112,7 +112,7 @@ void QWidgetLineControl::updateDisplayText(bool forceUpdate)
// characters)
QChar* uc = str.data();
for (int i = 0; i < (int)str.length(); ++i) {
if ((uc[i] < 0x20 && uc[i] != 0x09)
if ((uc[i].unicode() < 0x20 && uc[i].unicode() != 0x09)
|| uc[i] == QChar::LineSeparator
|| uc[i] == QChar::ParagraphSeparator
|| uc[i] == QChar::ObjectReplacementCharacter)
......
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