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/testmain.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/svnqt/testmain.cpp') 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 +#include 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; -- cgit v1.2.1