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:
Kai Koehne
2011-05-02 14:36:45 +02:00
parent 181d9b8e39
commit 0bbb1ad9ab

View File

@@ -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");