uic: Use QString::fromUtf8 for QUrl properties.

As otherwise the compilation of ui_-files fails when
using QT_NO_CAST_FROM_ASCII. Bug reported on mailing list.

Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
Change-Id: I00bf2e2605b97ff77efdcb68b7968375b3e9d195
(cherry picked from commit 00bf2e2605b97ff77efdcb68b7968375b3e9d195)
Reviewed-on: http://codereview.qt.nokia.com/174
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint 2011-05-25 11:27:40 +02:00 committed by Qt Continuous Integration System
parent 40425ea53e
commit bf234e3288

View File

@ -1452,7 +1452,7 @@ void WriteInitialization::writeProperties(const QString &varName,
case DomProperty::Url: {
const DomUrl* u = p->elementUrl();
propertyValue = QString::fromLatin1("QUrl(%1)")
propertyValue = QString::fromLatin1("QUrl(QString::fromUtf8(%1))")
.arg(fixString(u->elementString()->text(), m_dindent));
break;
}