diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/svnqt/url.hpp | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
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
Diffstat (limited to 'src/svnqt/url.hpp')
-rw-r--r-- | src/svnqt/url.hpp | 30 |
1 files changed, 9 insertions, 21 deletions
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 <qglobal.h> -#if QT_VERSION < 0x040000 - -#include <qstring.h> -#include <qvaluelist.h> - -#else - -#include <QtCore> - -#endif +#include <tqglobal.h> +#include <tqstring.h> +#include <tqvaluelist.h> 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<QString> -#else - static QList<QString> -#endif + static TQValueList<TQString> supportedSchemas (); }; } |