Commit 0bbb1ad9 authored by Kai Koehne's avatar Kai Koehne

QmlProfiler: Fix MSVC warning about character encoding

MSVC on some system might complain

"C4566: character represented by universal-character-name '\u03BCs'
cannot be represented in the current code page".

Fix this by forcing the string to be wchar_t based.
parent 181d9b8e
......@@ -258,7 +258,7 @@ void QmlProfilerSummaryView::appendRow(const QString &displayName,
QString QmlProfilerSummaryView::displayTime(double time) const
{
if (time<1e6)
return QString::number(time/1e3,'f',3) + QString::fromUtf8(" \u03BCs");//(" \u03BCs");
return QString::number(time/1e3,'f',3) + QString::fromWCharArray(L" \u03BCs");
if (time<1e9)
return QString::number(time/1e6,'f',3) + QLatin1String(" ms");
......
Markdown is supported
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