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/path.hpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/svnqt/path.hpp') diff --git a/src/svnqt/path.hpp b/src/svnqt/path.hpp index 0d92fc2..b9cc73f 100644 --- a/src/svnqt/path.hpp +++ b/src/svnqt/path.hpp @@ -31,7 +31,7 @@ #ifndef _SVNCPP_PATH_HPP_ #define _SVNCPP_PATH_HPP_ -#include +#include #include "svnqt/svnqt_defines.hpp" #include "svnqt/svnqttypes.hpp" @@ -40,17 +40,17 @@ namespace svn /** * Encapsulation for Subversion Path handling */ - class SVNQT_EXPORT Path + class SVNTQT_EXPORT Path { private: - QString m_path; + TQString m_path; /** * initialize the class * * @param path Path string - when url this should NOT hold revision as @ parameter!!!!! (will filtered out) */ - void init (const QString& path); + void init (const TQString& path); public: /** @@ -60,12 +60,12 @@ namespace svn * * @param path Path string - when url this should NOT hold revision as @ parameter!!!!! (will filtered out) */ - Path (const QString & path = QString::null); + Path (const TQString & path = TQString()); /** * Constructor * - * @see Path::Path (const QString &) + * @see Path::Path (const TQString &) * @param path Path string - when url this should NOT hold revision as @ parameter!!!!! (will filtered out) */ Path (const char * path); @@ -85,23 +85,23 @@ namespace svn /** * @return Path string */ - const QString & + const TQString & path () const; /** * @return Path string */ - operator const QString&()const; + operator const TQString&()const; /** * @return Path as pretty url */ - QString prettyPath()const; + TQString prettyPath()const; /** * @return Path string as c string */ - const QByteArray cstr() const; + const TQByteArray cstr() const; /** * check whether a path is set. Right now @@ -129,9 +129,9 @@ namespace svn * @param component new component to add */ void - addComponent (const QString & component); + addComponent (const TQString & component); - /** Reduce path to its parent folder. + /** Reduce path to its tqparent folder. * If the path length is 1 (eg., only "/") it will cleared so * path length will get zero. * @sa svn_path_remove_component @@ -147,7 +147,7 @@ namespace svn * @param basename filename */ void - split (QString & dirpath, QString & basename) const; + split (TQString & dirpath, TQString & basename) const; /** @@ -159,7 +159,7 @@ namespace svn * @param ext extension (including leading dot ".") */ void - split (QString & dir, QString & filename, QString & ext) const; + split (TQString & dir, TQString & filename, TQString & ext) const; /** @@ -175,7 +175,7 @@ namespace svn * @throw svn::ClientException on errors */ static void - parsePeg(const QString&pathorurl,Path&_path,svn::Revision&_peg); + parsePeg(const TQString&pathorurl,Path&_path,svn::Revision&_peg); /** return the length of the path-string */ @@ -184,7 +184,7 @@ namespace svn /** returns the path with native separators */ - QString + TQString native () const; /** returns if the path is a valid url, eg. points to a remote */ -- cgit v1.2.1