diff options
Diffstat (limited to 'bibletime/backend/cswordldkey.cpp')
-rw-r--r-- | bibletime/backend/cswordldkey.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bibletime/backend/cswordldkey.cpp b/bibletime/backend/cswordldkey.cpp index 0f189e9..6fac2dc 100644 --- a/bibletime/backend/cswordldkey.cpp +++ b/bibletime/backend/cswordldkey.cpp @@ -14,7 +14,7 @@ #include "cswordlexiconmoduleinfo.h" //Qt includes -#include <qtextcodec.h> +#include <tqtextcodec.h> //Sword includes #include <swmodule.h> @@ -44,7 +44,7 @@ CSwordLDKey* CSwordLDKey::copy() const { /** Sets the module of this key. */ CSwordModuleInfo* const CSwordLDKey::module(CSwordModuleInfo* const newModule) { if (newModule && newModule->type() == CSwordModuleInfo::Lexicon) { - const QString oldKey = key(); + const TQString oldKey = key(); m_module = newModule; key(oldKey); } @@ -53,12 +53,12 @@ CSwordModuleInfo* const CSwordLDKey::module(CSwordModuleInfo* const newModule) { } /** Sets the key of this instance */ -const QString CSwordLDKey::key() const { +const TQString CSwordLDKey::key() const { if (!m_module || m_module->isUnicode()) { - return QString::fromUtf8((const char*)*this); + return TQString::fromUtf8((const char*)*this); } else { - QTextCodec *codec = QTextCodec::codecForName("CP1252"); + TQTextCodec *codec = TQTextCodec::codecForName("CP1252"); return codec->toUnicode((const char*)*this); } } @@ -67,14 +67,14 @@ const char * CSwordLDKey::rawKey() const { return (const char*)*this; } -const bool CSwordLDKey::key( const QString& newKey ) { +const bool CSwordLDKey::key( const TQString& newKey ) { Q_ASSERT(m_module); if (!m_module || m_module->isUnicode()) { return key((const char*)newKey.utf8()); } else { - QTextCodec *codec = QTextCodec::codecForName("CP1252"); + TQTextCodec *codec = TQTextCodec::codecForName("CP1252"); return key((const char*)codec->fromUnicode(newKey)); } } @@ -124,7 +124,7 @@ CSwordLDKey* CSwordLDKey::PreviousEntry() { } /** Assignment operator for more ease of use of this class. */ -CSwordLDKey& CSwordLDKey::operator = (const QString& keyname ) { +CSwordLDKey& CSwordLDKey::operator = (const TQString& keyname ) { key(keyname); return *this; } |