From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kompare/libdiff2/difference.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kompare/libdiff2/difference.h') diff --git a/kompare/libdiff2/difference.h b/kompare/libdiff2/difference.h index 91065891..51295636 100644 --- a/kompare/libdiff2/difference.h +++ b/kompare/libdiff2/difference.h @@ -20,8 +20,8 @@ #ifndef DIFFERENCE_H #define DIFFERENCE_H -#include -#include +#include +#include #include @@ -62,9 +62,9 @@ private: unsigned int m_offset; }; -typedef QValueList MarkerList; -typedef QValueList::iterator MarkerListIterator; -typedef QValueList::const_iterator MarkerListConstIterator; +typedef TQValueList MarkerList; +typedef TQValueList::iterator MarkerListIterator; +typedef TQValueList::const_iterator MarkerListConstIterator; class DifferenceString { @@ -73,7 +73,7 @@ public: { // kdDebug(8101) << "DifferenceString::DifferenceString()" << endl; } - DifferenceString( const QString& string, const MarkerList& markerList = MarkerList() ) : + DifferenceString( const TQString& string, const MarkerList& markerList = MarkerList() ) : m_string( string ), m_markerList( markerList ) { @@ -91,11 +91,11 @@ public: ~DifferenceString() {} public: - const QString& string() const + const TQString& string() const { return m_string; } - const QString& conflictString() const + const TQString& conflictString() const { return m_conflict; } @@ -103,12 +103,12 @@ public: { return m_markerList; } - void setString( const QString& string ) + void setString( const TQString& string ) { m_string = string; calculateHash(); } - void setConflictString( const QString& conflict ) + void setConflictString( const TQString& conflict ) { m_conflict = conflict; } @@ -142,15 +142,15 @@ protected: } private: - QString m_string; - QString m_conflict; + TQString m_string; + TQString m_conflict; unsigned int m_hash; MarkerList m_markerList; }; -typedef QValueVector DifferenceStringList; -typedef QValueVector::iterator DifferenceStringListIterator; -typedef QValueVector::const_iterator DifferenceStringListConstIterator; +typedef TQValueVector DifferenceStringList; +typedef TQValueVector::iterator DifferenceStringListIterator; +typedef TQValueVector::const_iterator DifferenceStringListConstIterator; class Difference { @@ -190,13 +190,13 @@ public: void setType( int type ) { m_type = type; } - void addSourceLine( QString line ); - void addDestinationLine( QString line ); + void addSourceLine( TQString line ); + void addDestinationLine( TQString line ); /** This method will calculate the differences between the individual strings and store them as Markers */ void determineInlineDifferences(); - QString recreateDifference() const; + TQString recreateDifference() const; private: int m_type; @@ -213,9 +213,9 @@ private: LevenshteinTable* m_tableXXX; // now unused }; -typedef QValueList DifferenceList; -typedef QValueList::iterator DifferenceListIterator; -typedef QValueList::const_iterator DifferenceListConstIterator; +typedef TQValueList DifferenceList; +typedef TQValueList::iterator DifferenceListIterator; +typedef TQValueList::const_iterator DifferenceListConstIterator; } // End of namespace Diff2 -- cgit v1.2.1