Commit 402b364e authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

tr()-glitch.

parent 281494a3
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "invalidargumentexception.h" #include "invalidargumentexception.h"
#include <QString> #include <QString>
#include <QCoreApplication>
/*! /*!
\class QmlDesigner::InvalidArgumentException \class QmlDesigner::InvalidArgumentException
\ingroup CoreExceptions \ingroup CoreExceptions
...@@ -57,7 +57,7 @@ InvalidArgumentException::InvalidArgumentException(int line, ...@@ -57,7 +57,7 @@ InvalidArgumentException::InvalidArgumentException(int line,
QString InvalidArgumentException::description() const QString InvalidArgumentException::description() const
{ {
if (function() == "createNode") if (function() == "createNode")
return QString(QObject::tr("Failed to create item of type %1")).arg(m_argument); return QCoreApplication::translate("QmlDesigner::InvalidArgumentException", "Failed to create item of type %1").arg(m_argument);
return Exception::description(); return Exception::description();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment