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/testmain.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/testmain.cpp')
-rw-r--r-- | src/svnqt/testmain.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/svnqt/testmain.cpp b/src/svnqt/testmain.cpp index 13ae286..91af73b 100644 --- a/src/svnqt/testmain.cpp +++ b/src/svnqt/testmain.cpp @@ -22,7 +22,7 @@ #include "context.hpp" #include "datetime.hpp" -#include <qdatastream.h> +#include <tqdatastream.h> int main(int,char**) { @@ -30,9 +30,9 @@ int main(int,char**) svn::repository::Repository rep(0L); svn::ContextP myContext = new svn::Context(); - QByteArray tout; -#if QT_VERSION < 0x040000 - QDataStream out(tout,IO_WriteOnly); + TQByteArray tout; +#if [[[TQT_VERSION IS DEPRECATED]]] < 0x040000 + TQDataStream out(tout,IO_WriteOnly); #endif svn::Client*m_Svnclient = svn::Client::getobject(0,0); svn::ContextP m_CurrentContext = new svn::Context(); @@ -45,11 +45,11 @@ int main(int,char**) } catch (svn::ClientException ce) { gotit = false; } -#if QT_VERSION < 0x040000 +#if [[[TQT_VERSION IS DEPRECATED]]] < 0x040000 if (gotit) { out << m_OldHistory; svn::LogEntriesMap m_NewHistory; - QDataStream inp(tout,IO_ReadOnly); + TQDataStream inp(tout,IO_ReadOnly); inp >> m_NewHistory; svn::LogEntriesMap::Iterator it; |