Skip to content
Snippets Groups Projects
Commit 402b364e authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

tr()-glitch.

parent 281494a3
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
#include "invalidargumentexception.h"
#include <QString>
#include <QCoreApplication>
/*!
\class QmlDesigner::InvalidArgumentException
\ingroup CoreExceptions
......@@ -57,7 +57,7 @@ InvalidArgumentException::InvalidArgumentException(int line,
QString InvalidArgumentException::description() const
{
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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment