summaryrefslogtreecommitdiffstats
path: root/src/listviewcomparison.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listviewcomparison.h')
-rw-r--r--src/listviewcomparison.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/listviewcomparison.h b/src/listviewcomparison.h
index 4c0ed43..28a3878 100644
--- a/src/listviewcomparison.h
+++ b/src/listviewcomparison.h
@@ -16,10 +16,10 @@
#include "datavectors.h"
-#include <qregexp.h>
+#include <tqregexp.h>
-class QStringList;
-class QIconViewItem;
+class TQStringList;
+class TQIconViewItem;
namespace Tellico {
namespace GUI {
@@ -31,19 +31,19 @@ public:
ListViewComparison(Data::ConstFieldPtr field);
virtual ~ListViewComparison() {}
- const QString& fieldName() const { return m_fieldName; }
+ const TQString& fieldName() const { return m_fieldName; }
virtual int compare(int col, const GUI::ListViewItem* item1, const GUI::ListViewItem* item2, bool asc);
- virtual int compare(const QIconViewItem* item1, const QIconViewItem* item2);
+ virtual int compare(const TQIconViewItem* item1, const TQIconViewItem* item2);
static ListViewComparison* create(Data::FieldPtr field);
static ListViewComparison* create(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2) = 0;
+ virtual int compare(const TQString& str1, const TQString& str2) = 0;
private:
- QString m_fieldName;
+ TQString m_fieldName;
};
class StringComparison : public ListViewComparison {
@@ -51,7 +51,7 @@ public:
StringComparison(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2);
+ virtual int compare(const TQString& str1, const TQString& str2);
};
class TitleComparison : public ListViewComparison {
@@ -59,7 +59,7 @@ public:
TitleComparison(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2);
+ virtual int compare(const TQString& str1, const TQString& str2);
};
class NumberComparison : public ListViewComparison {
@@ -67,7 +67,7 @@ public:
NumberComparison(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2);
+ virtual int compare(const TQString& str1, const TQString& str2);
};
class LCCComparison : public StringComparison {
@@ -75,11 +75,11 @@ public:
LCCComparison(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2);
+ virtual int compare(const TQString& str1, const TQString& str2);
private:
- int compareLCC(const QStringList& cap1, const QStringList& cap2) const;
- QRegExp m_regexp;
+ int compareLCC(const TQStringList& cap1, const TQStringList& cap2) const;
+ TQRegExp m_regexp;
};
class PixmapComparison : public ListViewComparison {
@@ -87,10 +87,10 @@ public:
PixmapComparison(Data::ConstFieldPtr field);
virtual int compare(int col, const GUI::ListViewItem* item1, const GUI::ListViewItem* item2, bool asc);
- virtual int compare(const QIconViewItem* item1, const QIconViewItem* item2);
+ virtual int compare(const TQIconViewItem* item1, const TQIconViewItem* item2);
protected:
- virtual int compare(const QString&, const QString&) { return 0; }
+ virtual int compare(const TQString&, const TQString&) { return 0; }
};
class DependentComparison : public StringComparison {
@@ -98,10 +98,10 @@ public:
DependentComparison(Data::ConstFieldPtr field);
virtual int compare(int col, const GUI::ListViewItem* item1, const GUI::ListViewItem* item2, bool asc);
- virtual int compare(const QIconViewItem* item1, const QIconViewItem* item2);
+ virtual int compare(const TQIconViewItem* item1, const TQIconViewItem* item2);
private:
- QPtrList<ListViewComparison> m_comparisons;
+ TQPtrList<ListViewComparison> m_comparisons;
};
class ISODateComparison : public ListViewComparison {
@@ -109,7 +109,7 @@ public:
ISODateComparison(Data::ConstFieldPtr field);
protected:
- virtual int compare(const QString& str1, const QString& str2);
+ virtual int compare(const TQString& str1, const TQString& str2);
};
}