summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/fillcachethread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svnfrontend/fillcachethread.cpp')
-rw-r--r--src/svnfrontend/fillcachethread.cpp26
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);
}