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/qscriptbreakpointsmodel.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/qscriptbreakpointsmodel.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptbreakpointsmodel.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/scripttools/debugging/qscriptbreakpointsmodel.cpp b/src/scripttools/debugging/qscriptbreakpointsmodel.cpp index 82a7c6a..40acebb 100644 --- a/src/scripttools/debugging/qscriptbreakpointsmodel.cpp +++ b/src/scripttools/debugging/qscriptbreakpointsmodel.cpp @@ -47,6 +47,7 @@ #include "private/qabstractitemmodel_p.h" #include <QtCore/qpair.h> +#include <QtCore/qcoreapplication.h> #include <QtGui/qicon.h> #include <QtCore/qdebug.h> @@ -451,17 +452,17 @@ QVariant QScriptBreakpointsModel::headerData(int section, Qt::Orientation orient if (orient == Qt::Horizontal) { if (role == Qt::DisplayRole) { if (section == 0) - return QObject::tr("ID"); + return QCoreApplication::translate("QScriptBreakpointsModel", "ID"); else if (section == 1) - return QObject::tr("Location"); + return QCoreApplication::translate("QScriptBreakpointsModel", "Location"); else if (section == 2) - return QObject::tr("Condition"); + return QCoreApplication::translate("QScriptBreakpointsModel", "Condition"); else if (section == 3) - return QObject::tr("Ignore-count"); + return QCoreApplication::translate("QScriptBreakpointsModel", "Ignore-count"); else if (section == 4) - return QObject::tr("Single-shot"); + return QCoreApplication::translate("QScriptBreakpointsModel", "Single-shot"); else if (section == 5) - return QObject::tr("Hit-count"); + return QCoreApplication::translate("QScriptBreakpointsModel", "Hit-count"); } } return QVariant(); |