diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/listviewcomparison.h | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/listviewcomparison.h')
-rw-r--r-- | src/listviewcomparison.h | 36 |
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); }; } |