summaryrefslogtreecommitdiffstats
path: root/lib/libchmfile/qt34.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libchmfile/qt34.h')
-rw-r--r--lib/libchmfile/qt34.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/lib/libchmfile/qt34.h b/lib/libchmfile/qt34.h
index 0835b0a..6181c8b 100644
--- a/lib/libchmfile/qt34.h
+++ b/lib/libchmfile/qt34.h
@@ -22,22 +22,22 @@
#ifndef INCLUDE_QT34_H
#define INCLUDE_QT34_H
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqstring.h>
-// Qt3/Qt4 compatibility: in Qt3 QVector stores pointers, not values - so QValueVector should be used.
-// In Qt4 QVector stores values, so we can use QVector
-#if defined (USE_QT_4)
- #define LIBCHMVector QVector
+// TQt3/TQt4 compatibility: in TQt3 TQVector stores pointers, not values - so TQValueVector should be used.
+// In TQt4 TQVector stores values, so we can use TQVector
+#if defined (USE_TQT_4)
+ #define LIBCHMVector TQVector
#else
-#include <qvaluevector.h>
- #define LIBCHMVector QValueVector
+#include <tqvaluevector.h>
+ #define LIBCHMVector TQValueVector
#endif
-#if defined (USE_QT_4)
- #define LIBCHMMemArray QVector
+#if defined (USE_TQT_4)
+ #define LIBCHMMemArray TQVector
#else
- #define LIBCHMMemArray QMemArray
+ #define LIBCHMMemArray TQMemArray
#endif
class LIBCHMCString
@@ -50,74 +50,74 @@ class LIBCHMCString
void clear();
- bool operator==(const QString &string) const;
+ bool operator==(const TQString &string) const;
uint length() const;
bool isEmpty() const;
void prepend(char c);
char at(uint i) const;
- void replace(uint index, uint len, const char *str);
+ void tqreplace(uint index, uint len, const char *str);
void remove(uint index, uint len);
LIBCHMCString lower();
private:
-#if defined (USE_QT_4)
- QByteArray cs;
+#if defined (USE_TQT_4)
+ TQByteArray cs;
#else
- QCString cs;
+ TQCString cs;
#endif
};
class LIBCHMRegExp
{
public:
- LIBCHMRegExp(const QString &regexp);
+ LIBCHMRegExp(const TQString &regexp);
- int search(const QString &str, int offset = 0);
- QString cap(int nth);
+ int search(const TQString &str, int offset = 0);
+ TQString cap(int nth);
void setMinimal(bool minimal);
int matchedLength() const;
private:
- QRegExp re;
+ TQRegExp re;
};
class LIBCHMString
{
public:
LIBCHMString();
- LIBCHMString(const QString &string);
+ LIBCHMString(const TQString &string);
LIBCHMString(const char *string);
- QString lower() const;
+ TQString lower() const;
const char *ascii() const;
- int find(char c, int index = -1) const;
- int find(const QChar &c, int index) const;
- int find(const QString &string, int index, bool cs) const;
- int findRev(char c) const;
- QChar at(uint i) const;
- QString left(uint len) const;
+ int tqfind(char c, int index = -1) const;
+ int tqfind(const TQChar &c, int index) const;
+ int tqfind(const TQString &string, int index, bool cs) const;
+ int tqfindRev(char c) const;
+ TQChar at(uint i) const;
+ TQString left(uint len) const;
LIBCHMString mid(uint index, uint len = 0xffffffff) const;
bool isEmpty() const;
- QString toString() const;
+ TQString toString() const;
- bool operator==(const QString &string) const;
+ bool operator==(const TQString &string) const;
private:
- QString s;
+ TQString s;
};
class LIBCHMDir
{
public:
- static QString cleanDirPath(const QString &dir);
+ static TQString cleanDirPath(const TQString &dir);
};
class LIBCHMStringList
{
public:
- static bool contains(const QStringList &list, const QString &string);
- static QStringList split(const QRegExp &regexp, const QString &string);
+ static bool tqcontains(const TQStringList &list, const TQString &string);
+ static TQStringList split(const TQRegExp &regexp, const TQString &string);
};
#endif