From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: 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 --- src/listviewcomparison.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/listviewcomparison.h') 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 +#include -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 m_comparisons; + TQPtrList 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); }; } -- cgit v1.2.1