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/revision.cpp | |
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/revision.cpp')
-rw-r--r-- | src/svnqt/revision.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/svnqt/revision.cpp b/src/svnqt/revision.cpp index a89fae1..c34a819 100644 --- a/src/svnqt/revision.cpp +++ b/src/svnqt/revision.cpp @@ -34,7 +34,7 @@ #include "pool.hpp" // qt -#include "qdatetime.h" +#include "tqdatetime.h" namespace svn { @@ -71,7 +71,7 @@ namespace svn m_revision.value.number = 0; } - Revision::Revision (const int revnum, const QString&revstring) + Revision::Revision (const int revnum, const TQString&revstring) { m_revision.kind = svn_opt_revision_unspecified; @@ -83,13 +83,13 @@ namespace svn } } - Revision::Revision (const QString&revstring) + Revision::Revision (const TQString&revstring) { assign(revstring); } void - Revision::assign(const QString&revstring) + Revision::assign(const TQString&revstring) { m_revision.kind = svn_opt_revision_unspecified; if (revstring.isEmpty()) { @@ -112,14 +112,14 @@ namespace svn } void - Revision::assign(const QDateTime&dateTime) + Revision::assign(const TQDateTime&dateTime) { m_revision.kind = svn_opt_revision_date; DateTime dt(dateTime); m_revision.value.date = dt.GetAPRTimeT(); } - Revision& Revision::operator=(const QString&what) + Revision& Revision::operator=(const TQString&what) { assign(what); return *this; @@ -131,7 +131,7 @@ namespace svn m_revision.value.date = dateTime.GetAPRTimeT(); } - Revision::Revision (const QDateTime&dateTime) + Revision::Revision (const TQDateTime&dateTime) { assign(dateTime); } @@ -172,15 +172,15 @@ namespace svn } } - Revision::operator QString ()const + Revision::operator TQString ()const { return toString(); } - QString Revision::toString()const + TQString Revision::toString()const { - QString value; - QDateTime result; + TQString value; + TQDateTime result; switch (m_revision.kind) { case svn_opt_revision_number: value.sprintf("%li",m_revision.value.number); |