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/svnfrontend/fillcachethread.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/svnfrontend/fillcachethread.cpp')
-rw-r--r-- | src/svnfrontend/fillcachethread.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/svnfrontend/fillcachethread.cpp b/src/svnfrontend/fillcachethread.cpp index ddaa934..4930cce 100644 --- a/src/svnfrontend/fillcachethread.cpp +++ b/src/svnfrontend/fillcachethread.cpp @@ -25,19 +25,19 @@ #include "src/svnqt/cache/DatabaseException.hpp" #include "src/kdesvn_events.h" -#include <qobject.h> +#include <tqobject.h> #include <kdebug.h> #include <kapplication.h> #include <klocale.h> -FillCacheThread::FillCacheThread(QObject*_parent,const QString&reposRoot) - : QThread(),mutex(),m_SvnContextListener(0) +FillCacheThread::FillCacheThread(TQObject*_tqparent,const TQString&reposRoot) + : TQThread(),mutex(),m_SvnContextListener(0) { - m_Parent = _parent; + m_Parent = _tqparent; m_CurrentContext = new svn::Context(); m_SvnContextListener = new ThreadContextListener(m_Parent); - QObject::connect(m_SvnContextListener,SIGNAL(sendNotify(const QString&)),m_Parent,SLOT(slotNotifyMessage(const QString&))); + TQObject::connect(m_SvnContextListener,TQT_SIGNAL(sendNotify(const TQString&)),m_Parent,TQT_SLOT(slotNotifyMessage(const TQString&))); m_CurrentContext->setListener(m_SvnContextListener); m_what = reposRoot; @@ -51,7 +51,7 @@ FillCacheThread::~FillCacheThread() m_SvnContextListener=0; } -const QString&FillCacheThread::reposRoot()const +const TQString&FillCacheThread::reposRoot()const { return m_what; } @@ -65,21 +65,21 @@ void FillCacheThread::cancelMe() void FillCacheThread::run() { svn::Revision where = svn::Revision::HEAD; - QString ex; + TQString ex; svn::cache::ReposLog rl(m_Svnclient,m_what); bool breakit=false; KApplication*k = KApplication::kApplication(); try { svn::Revision latestCache = rl.latestCachedRev(); svn::Revision Head = rl.latestHeadRev(); - Q_LLONG i = latestCache.revnum(); + TQ_LLONG i = latestCache.revnum(); if (i<0) { i=0; } - Q_LLONG j = Head.revnum(); + TQ_LLONG j = Head.revnum(); - Q_LLONG _max=j-i; - Q_LLONG _cur=0; + TQ_LLONG _max=j-i; + TQ_LLONG _cur=0; FillCacheStatusEvent*fev; if (k) { @@ -110,13 +110,13 @@ void FillCacheThread::run() rl.fillCache(Head.revnum()); } i=Head.revnum(); - m_SvnContextListener->contextNotify(i18n("Cache filled up to revision %1").arg(i)); + m_SvnContextListener->contextNotify(i18n("Cache filled up to revision %1").tqarg(i)); } } catch (const svn::Exception&e) { m_SvnContextListener->contextNotify(e.msg()); } if (k && !breakit) { - QCustomEvent*ev = new QCustomEvent(EVENT_LOGCACHE_FINISHED); + TQCustomEvent*ev = new TQCustomEvent(EVENT_LOGCACHE_FINISHED); ev->setData((void*)this); k->postEvent(m_Parent,ev); } |