diff options
Diffstat (limited to 'src/svnqt/revision.hpp')
-rw-r--r-- | src/svnqt/revision.hpp | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/svnqt/revision.hpp b/src/svnqt/revision.hpp index 371b1a1..706b68c 100644 --- a/src/svnqt/revision.hpp +++ b/src/svnqt/revision.hpp @@ -36,13 +36,9 @@ #include <svnqt/svnqt_defines.hpp> // qt -#include <qglobal.h> -#if QT_VERSION < 0x040000 - #include <qstring.h> - #include <qtextstream.h> -#else - #include <QtCore> -#endif +#include <tqglobal.h> +#include <tqstring.h> +#include <tqtextstream.h> // subversion api #include "svn_types.h" @@ -55,7 +51,7 @@ namespace svn * * @see svn_opt_revnum_t */ - class SVNQT_EXPORT Revision + class SVNTQT_EXPORT Revision { private: svn_opt_revision_t m_revision; @@ -64,10 +60,10 @@ namespace svn init (const svn_opt_revision_t * revision); void - assign(const QString&); + assign(const TQString&); void - assign(const QDateTime&); + assign(const TQDateTime&); public: static const svn_opt_revision_kind START; @@ -102,7 +98,7 @@ namespace svn * The revision string MUST uppercase, it may some of "HEAD", "BASE", "WORKING", "COMMITED", "PREV", * or a date in form {YYYY-MM-DD}. */ - Revision (const int revnum, const QString&revstring); + Revision (const int revnum, const TQString&revstring); /** * Constructor @@ -111,7 +107,7 @@ namespace svn * The revision string MUST uppercase, it may some of "HEAD", "BASE", "WORKING", "COMMITED", "PREV", * or a date in form {YYYY-MM-DD}. */ - Revision (const QString&revstring); + Revision (const TQString&revstring); /** * Constructor @@ -130,9 +126,9 @@ namespace svn /** * Constructor * - * @param dateTime QDateTime type + * @param dateTime TQDateTime type */ - Revision (const QDateTime&dateTime); + Revision (const TQDateTime&dateTime); /** * Copy constructor @@ -177,8 +173,8 @@ namespace svn svn_opt_revision_kind kind () const; - operator QString ()const; - QString toString()const; + operator TQString ()const; + TQString toString()const; bool isRemote()const; @@ -203,12 +199,12 @@ namespace svn * @param what a simple revision string (not s:e but s) * @return object itself */ - Revision& operator=(const QString&what); + Revision& operator=(const TQString&what); }; } -inline QTextStream& operator<<(QTextStream&s,svn::Revision&r) +inline TQTextStream& operator<<(TQTextStream&s,svn::Revision&r) { s << r.toString(); return s; |