forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -258,7 +258,7 @@ void QmlProfilerSummaryView::appendRow(const QString &displayName,
|
|||||||
QString QmlProfilerSummaryView::displayTime(double time) const
|
QString QmlProfilerSummaryView::displayTime(double time) const
|
||||||
{
|
{
|
||||||
if (time<1e6)
|
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)
|
if (time<1e9)
|
||||||
return QString::number(time/1e6,'f',3) + QLatin1String(" ms");
|
return QString::number(time/1e6,'f',3) + QLatin1String(" ms");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user