diff options
Diffstat (limited to 'bibletime/backend/cswordbiblemoduleinfo.cpp')
-rw-r--r-- | bibletime/backend/cswordbiblemoduleinfo.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bibletime/backend/cswordbiblemoduleinfo.cpp b/bibletime/backend/cswordbiblemoduleinfo.cpp index 352aad0..e878a2d 100644 --- a/bibletime/backend/cswordbiblemoduleinfo.cpp +++ b/bibletime/backend/cswordbiblemoduleinfo.cpp @@ -17,7 +17,7 @@ // #include "util/cpointers.h" //Qt includes -#include <qfile.h> +#include <tqfile.h> //Sword includes #include <versekey.h> @@ -43,7 +43,7 @@ m_lowerBound(0), m_upperBound(0), m_bookList(0) { if (m.m_bookList) { - m_bookList = new QStringList(); + m_bookList = new TQStringList(); *m_bookList = *m.m_bookList; } @@ -86,14 +86,14 @@ void CSwordBibleModuleInfo::initBounds() { /** Returns the books available in this module */ -QStringList* const CSwordBibleModuleInfo::books() { +TQStringList* const CSwordBibleModuleInfo::books() { if (m_cachedLocale != backend()->booknameLanguage()) { //if the locale has changed delete m_bookList; m_bookList = 0; } if (!m_bookList) { - m_bookList = new QStringList(); + m_bookList = new TQStringList(); initBounds(); int min = 0; @@ -123,7 +123,7 @@ QStringList* const CSwordBibleModuleInfo::books() { (*key) = sword::TOP; for (key->Testament(min+1); !key->Error() && (key->Testament()-1) <= max; key->Book(key->Book()+1)) { - m_bookList->append( QString::fromUtf8(key->getBookName()) ); + m_bookList->append( TQString::fromUtf8(key->getBookName()) ); } m_cachedLocale = backend()->booknameLanguage(); @@ -147,7 +147,7 @@ const unsigned int CSwordBibleModuleInfo::chapterCount(const unsigned int book) return result; } -const unsigned int CSwordBibleModuleInfo::chapterCount(const QString& book) { +const unsigned int CSwordBibleModuleInfo::chapterCount(const TQString& book) { return chapterCount( bookNumber(book) ); } @@ -168,11 +168,11 @@ const unsigned int CSwordBibleModuleInfo::verseCount( const unsigned int book, c return result; } -const unsigned int CSwordBibleModuleInfo::verseCount( const QString& book, const unsigned int chapter ) { +const unsigned int CSwordBibleModuleInfo::verseCount( const TQString& book, const unsigned int chapter ) { return verseCount( bookNumber(book), chapter ); } -const unsigned int CSwordBibleModuleInfo::bookNumber(const QString &book) { +const unsigned int CSwordBibleModuleInfo::bookNumber(const TQString &book) { unsigned int bookNumber = 0; //find out if we have ot and nt, only ot or only nt @@ -215,7 +215,7 @@ const unsigned int CSwordBibleModuleInfo::bookNumber(const QString &book) { for ( int j = 0; j < key->BMAX[i] && !found; ++j) { ++bookNumber; - if (book == QString::fromUtf8( key->books[i][j].name) ) + if (book == TQString::fromUtf8( key->books[i][j].name) ) found = true; } } |