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/interpreter.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/interpreter.cpp')
-rw-r--r-- | lib/kross/api/interpreter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kross/api/interpreter.cpp b/lib/kross/api/interpreter.cpp index 439063cd..c6796e1f 100644 --- a/lib/kross/api/interpreter.cpp +++ b/lib/kross/api/interpreter.cpp @@ -35,7 +35,7 @@ using namespace Kross::Api; * InterpreterInfo */ -InterpreterInfo::InterpreterInfo(const QString& interpretername, const QString& library, const QString& wildcard, QStringList mimetypes, Option::Map options) +InterpreterInfo::InterpreterInfo(const TQString& interpretername, const TQString& library, const TQString& wildcard, TQStringList mimetypes, Option::Map options) : m_interpretername(interpretername) , m_library(library) , m_wildcard(wildcard) @@ -54,32 +54,32 @@ InterpreterInfo::~InterpreterInfo() m_interpreter = 0; } -const QString InterpreterInfo::getInterpretername() +const TQString InterpreterInfo::getInterpretername() { return m_interpretername; } -const QString InterpreterInfo::getWildcard() +const TQString InterpreterInfo::getWildcard() { return m_wildcard; } -const QStringList InterpreterInfo::getMimeTypes() +const TQStringList InterpreterInfo::getMimeTypes() { return m_mimetypes; } -bool InterpreterInfo::hasOption(const QString& key) +bool InterpreterInfo::hasOption(const TQString& key) { - return m_options.contains(key); + return m_options.tqcontains(key); } -InterpreterInfo::Option* InterpreterInfo::getOption(const QString name) +InterpreterInfo::Option* InterpreterInfo::getOption(const TQString name) { return m_options[name]; } -const QVariant InterpreterInfo::getOptionValue(const QString name, QVariant defaultvalue) +const TQVariant InterpreterInfo::getOptionValue(const TQString name, TQVariant defaultvalue) { Option* o = m_options[name]; return o ? o->value : defaultvalue; @@ -95,7 +95,7 @@ Interpreter* InterpreterInfo::getInterpreter() if(m_interpreter) // buffered return m_interpreter; - krossdebug( QString("Loading the interpreter library for %1").arg(m_interpretername) ); + krossdebug( TQString("Loading the interpreter library for %1").tqarg(m_interpretername) ); // Load the krosspython library. KLibLoader *libloader = KLibLoader::self(); @@ -104,10 +104,10 @@ Interpreter* InterpreterInfo::getInterpreter() if(! library) { /* setException( - new Exception( QString("Could not load library \"%1\" for the \"%2\" interpreter.").arg(m_library).arg(m_interpretername) ) + new Exception( TQString("Could not load library \"%1\" for the \"%2\" interpreter.").tqarg(m_library).tqarg(m_interpretername) ) ); */ - krosswarning( QString("Could not load library \"%1\" for the \"%2\" interpreter.").arg(m_library).arg(m_interpretername) ); + krosswarning( TQString("Could not load library \"%1\" for the \"%2\" interpreter.").tqarg(m_library).tqarg(m_interpretername) ); return 0; } |