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/url.hpp | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'src/svnqt/url.hpp') diff --git a/src/svnqt/url.hpp b/src/svnqt/url.hpp index 795d4c8..44c06a3 100644 --- a/src/svnqt/url.hpp +++ b/src/svnqt/url.hpp @@ -34,22 +34,14 @@ #include "svnqt/svnqt_defines.hpp" // qt -#include -#if QT_VERSION < 0x040000 - -#include -#include - -#else - -#include - -#endif +#include +#include +#include namespace svn { - class SVNQT_EXPORT Url + class SVNTQT_EXPORT Url { public: /** Constructor */ @@ -67,7 +59,7 @@ namespace svn * /home/foo/bar */ static bool - isValid (const QString& url); + isValid (const TQString& url); /** * Checks if @a url points to a local filesystem. @@ -75,10 +67,10 @@ namespace svn * @return true if url is accessed local without network. */ static bool - isLocal(const QString& url); + isLocal(const TQString& url); - static QString - transformProtokoll(const QString&); + static TQString + transformProtokoll(const TQString&); /** * returns a vector with url schemas that are @@ -86,11 +78,7 @@ namespace svn * * @return vector with entries like "file:", "http:" */ -#if QT_VERSION < 0x040000 - static QValueList -#else - static QList -#endif + static TQValueList supportedSchemas (); }; } -- cgit v1.2.1