From d7633c195a464e4d344ada9eea61afd10110598a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 4 May 2011 19:54:24 +0000 Subject: Port kdesvn to TQt4 This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/svnqt/svnqttypes.hpp | 48 ++++++++++++++++++++++-------------------------- 1 file changed, 22 insertions(+), 26 deletions(-) (limited to 'src/svnqt/svnqttypes.hpp') diff --git a/src/svnqt/svnqttypes.hpp b/src/svnqt/svnqttypes.hpp index b3c6381..dc7a178 100644 --- a/src/svnqt/svnqttypes.hpp +++ b/src/svnqt/svnqttypes.hpp @@ -18,23 +18,19 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef _SVNQT_TYPES_HPP -#define _SVNQT_TYPES_HPP +#ifndef _SVNTQT_TYPES_HPP +#define _SVNTQT_TYPES_HPP #include "svnqt/svnqt_defines.hpp" #include "svnqt/shared_pointer.hpp" // qt -#include +#include -#if QT_VERSION < 0x040000 - #include - #include - #include - #include -#else - #include -#endif +#include +#include +#include +#include namespace svn { @@ -45,45 +41,45 @@ namespace svn class InfoEntry; class LogEntry; class Revision; - class Status; + class tqStatus; class Targets; class Path; class StringArray; - typedef QLIST AnnotatedFile; + typedef TQLIST AnnotatedFile; typedef SharedPointer DirEntryPtr; - typedef QLIST DirEntries; - typedef QLIST InfoEntries; + typedef TQLIST DirEntries; + typedef TQLIST InfoEntries; /// simple list of log entries - typedef QLIST LogEntries; + typedef TQLIST LogEntries; /// shared_pointer for LogEntriesMap typedef SharedPointer LogEntriesPtr; /// map of logentries - key is revision - typedef QMap LogEntriesMap; + typedef TQMap LogEntriesMap; /// shared_pointer for LogEntriesMap typedef SharedPointer LogEntriesMapPtr; - typedef SharedPointer StatusPtr; - typedef QLIST StatusEntries; - typedef QLIST Revisions; + typedef SharedPointer StatusPtr; + typedef TQLIST StatusEntries; + typedef TQLIST Revisions; /** Range of Revision */ - typedef QPair RevisionRange; + typedef TQPair RevisionRange; /** list of revision ranges */ - typedef QLIST RevisionRanges; + typedef TQLIST RevisionRanges; /// map of property names to values - typedef QMap PropertiesMap; + typedef TQMap PropertiesMap; /// pair of path, PropertiesMap - typedef QPair PathPropertiesMapEntry; + typedef TQPair PathPropertiesMapEntry; /// vector of path, Properties pairs - typedef QLIST PathPropertiesMapList; + typedef TQLIST PathPropertiesMapList; /// shared pointer for properties typedef SharedPointer PathPropertiesMapListPtr; - typedef QLIST Pathes; + typedef TQLIST Pathes; //! Mapper enum for svn_depth_t /*! -- cgit v1.2.1