diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-04 14:31:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-04 14:31:17 (GMT) |
commit | e524071986aba68956ff4cf18439e3d61ff90ec4 (patch) | |
tree | 5c7e609be153c4f0cbb708e6315d57fc1f9cf16b /src/declarative/qml/qmlinfo.cpp | |
parent | ee9aee5d85345880d8269c02cfd3c2d86e89c9d3 (diff) | |
download | Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.zip Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.gz Qt-e524071986aba68956ff4cf18439e3d61ff90ec4.tar.bz2 |
small cleanup
make use of QVariant::userType over Qvariant::type
make use of char for 1-string character
QCoreApplication::translate is static
Diffstat (limited to 'src/declarative/qml/qmlinfo.cpp')
-rw-r--r-- | src/declarative/qml/qmlinfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlinfo.cpp b/src/declarative/qml/qmlinfo.cpp index 2dbc968..27f5426 100644 --- a/src/declarative/qml/qmlinfo.cpp +++ b/src/declarative/qml/qmlinfo.cpp @@ -44,7 +44,7 @@ #include "qmldeclarativedata_p.h" #include "qmlcontext.h" -#include <QtGui/qapplication.h> +#include <QCoreApplication> QT_BEGIN_NAMESPACE @@ -88,17 +88,17 @@ QmlInfo::QmlInfo(const QObject *object) if (ddata) { if (ddata->outerContext) { pos += ddata->outerContext->baseUrl().toString(); - pos += QLatin1String(":"); + pos += QLatin1Char(':'); pos += QString::number(ddata->lineNumber); - pos += QLatin1String(":"); + pos += QLatin1Char(':'); pos += QString::number(ddata->columnNumber); } else { - pos += qApp->translate("QmlInfo","unknown location"); + pos += QCoreApplication::translate("QmlInfo","unknown location"); } } else { - pos += qApp->translate("QmlInfo","unknown location"); + pos += QCoreApplication::translate("QmlInfo","unknown location"); } - pos += QLatin1String(")"); + pos += QLatin1Char(')'); *this << pos; nospace(); } |