summaryrefslogtreecommitdiffstats
path: root/bibletime/backend/cswordversekey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bibletime/backend/cswordversekey.cpp')
-rw-r--r--bibletime/backend/cswordversekey.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/bibletime/backend/cswordversekey.cpp b/bibletime/backend/cswordversekey.cpp
index 4a017dc..344795e 100644
--- a/bibletime/backend/cswordversekey.cpp
+++ b/bibletime/backend/cswordversekey.cpp
@@ -15,7 +15,7 @@
#include "cswordcommentarymoduleinfo.h"
//Qt includes
-#include <qstringlist.h>
+#include <tqstringlist.h>
//Sword includes
#include <swmodule.h>
@@ -61,7 +61,7 @@ CSwordModuleInfo* const CSwordVerseKey::module( CSwordModuleInfo* const newModul
}
/** Returns the current book as Text, not as integer. */
-const QString CSwordVerseKey::book( const QString& newBook ) {
+const TQString CSwordVerseKey::book( const TQString& newBook ) {
int min = 0;
int max = 1;
@@ -108,23 +108,23 @@ const QString CSwordVerseKey::book( const QString& newBook ) {
}
if ( (Testament() >= min+1) && (Testament() <= max+1) && (Book() <= BMAX[min]) ) {
- return QString::fromUtf8( getBookName() );
+ return TQString::fromUtf8( getBookName() );
}
- //return QString::fromUtf8( books[min][0].name ); //return the first book, i.e. Genesis
- return QString::null;
+ //return TQString::fromUtf8( books[min][0].name ); //return the first book, i.e. Genesis
+ return TQString::null;
}
/** Sets the key we use to the parameter. */
-const QString CSwordVerseKey::key() const {
- return QString::fromUtf8(getText());
+const TQString CSwordVerseKey::key() const {
+ return TQString::fromUtf8(getText());
}
const char * CSwordVerseKey::rawKey() const {
return getText();
}
-const bool CSwordVerseKey::key( const QString& newKey ) {
+const bool CSwordVerseKey::key( const TQString& newKey ) {
return key( (const char*)newKey.utf8() );
}
@@ -188,7 +188,7 @@ const bool CSwordVerseKey::next( const JumpType type ) {
m_module->module()->setSkipConsecutiveLinks(oldStatus);
if (!m_module->module()->Error()) {
- key( QString::fromUtf8(m_module->module()->KeyText()) );
+ key( TQString::fromUtf8(m_module->module()->KeyText()) );
}
else {
// Verse(Verse()+1);
@@ -270,7 +270,7 @@ const bool CSwordVerseKey::previous( const JumpType type ) {
m_module->module()->setSkipConsecutiveLinks(oldStatus);
if (!m_module->module()->Error()) {
- key( QString::fromUtf8(m_module->module()->KeyText()) );//don't use fromUtf8
+ key( TQString::fromUtf8(m_module->module()->KeyText()) );//don't use fromUtf8
}
else {
ret = false;
@@ -310,7 +310,7 @@ const bool CSwordVerseKey::previous( const JumpType type ) {
}
/** Assignment operator for more ease of use. */
-CSwordVerseKey& CSwordVerseKey::operator = (const QString& keyname) {
+CSwordVerseKey& CSwordVerseKey::operator = (const TQString& keyname) {
key(keyname);
return *this;
}