diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-09-29 13:43:02 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-09-29 13:43:02 (GMT) |
commit | 75666d254304746ead69892e92fa4ab39d219df1 (patch) | |
tree | ceb744bbe6260c551aaf0fd2fc5a16aa5fd52ddb /src/scripttools/debugging/qscriptdebuggerstackmodel.cpp | |
parent | f6a6e30eb16616b90d90fd6e20f9d840da41b9d1 (diff) | |
download | Qt-75666d254304746ead69892e92fa4ab39d219df1.zip Qt-75666d254304746ead69892e92fa4ab39d219df1.tar.gz Qt-75666d254304746ead69892e92fa4ab39d219df1.tar.bz2 |
Fix tr-Errors/remove QObject::tr(), mainly in ScriptTools
Note: Those messages are to be translated in Qt 4.6
for the first time.
Reviewed-by: Kent Hansen <khansen@trolltech.com>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerstackmodel.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerstackmodel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerstackmodel.cpp b/src/scripttools/debugging/qscriptdebuggerstackmodel.cpp index a63ea73..2d56e17 100644 --- a/src/scripttools/debugging/qscriptdebuggerstackmodel.cpp +++ b/src/scripttools/debugging/qscriptdebuggerstackmodel.cpp @@ -45,6 +45,7 @@ #include <QtScript/qscriptcontextinfo.h> #include <QtCore/qfileinfo.h> +#include <QtCore/qcoreapplication.h> QT_BEGIN_NAMESPACE @@ -157,11 +158,11 @@ QVariant QScriptDebuggerStackModel::headerData(int section, Qt::Orientation orie return QVariant(); if (role == Qt::DisplayRole) { if (section == 0) - return QObject::tr("Level"); + return QCoreApplication::translate("QScriptDebuggerStackModel", "Level"); else if (section == 1) - return QObject::tr("Name"); + return QCoreApplication::translate("QScriptDebuggerStackModel", "Name"); else if (section == 2) - return QObject::tr("Location"); + return QCoreApplication::translate("QScriptDebuggerStackModel", "Location"); } return QVariant(); } |