diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kross/api/exception.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; } |