diff options
Diffstat (limited to 'lib/kross/api/exception.cpp')
-rw-r--r-- | lib/kross/api/exception.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kross/api/exception.cpp b/lib/kross/api/exception.cpp index a54bae88..c6a0198f 100644 --- a/lib/kross/api/exception.cpp +++ b/lib/kross/api/exception.cpp @@ -20,46 +20,46 @@ #include "object.h" #include "exception.h" -//#include <qstring.h> +//#include <tqstring.h> //#include <ksharedptr.h> using namespace Kross::Api; -Exception::Exception(const QString& error, long lineno) +Exception::Exception(const TQString& error, long lineno) : Object() , m_error(error) , m_lineno(lineno) { - krosswarning( QString("Kross::Api::Exception error='%1' lineno='%3'").arg(m_error).arg(m_lineno) ); + krosswarning( TQString("Kross::Api::Exception error='%1' lineno='%3'").tqarg(m_error).tqarg(m_lineno) ); } Exception::~Exception() { } -const QString Exception::getClassName() const +const TQString Exception::getClassName() const { return "Kross::Api::Exception"; } -const QString Exception::toString() +const TQString Exception::toString() { return (m_lineno != -1) - ? QString("Exception at line %1: %2").arg(m_lineno).arg(m_error) - : QString("Exception: %1").arg(m_error); + ? TQString("Exception at line %1: %2").tqarg(m_lineno).tqarg(m_error) + : TQString("Exception: %1").tqarg(m_error); } -const QString Exception::getError() const +const TQString Exception::getError() const { return m_error; } -const QString Exception::getTrace() const +const TQString Exception::getTrace() const { return m_trace; } -void Exception::setTrace(const QString& tracemessage) +void Exception::setTrace(const TQString& tracemessage) { m_trace = tracemessage; } |