summaryrefslogtreecommitdiffstats
path: root/src/svnfrontend/graphtree
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:27:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:27:08 -0600
commit773793eead2fea173ec9202ee938020592e86a02 (patch)
tree2df8f77f488c1e7de1c16eb6d50d33337bc6bea5 /src/svnfrontend/graphtree
parentf4899658cbe0d29487071c8340b66c80cc2a3010 (diff)
downloadtdesvn-773793eead2fea173ec9202ee938020592e86a02.tar.gz
tdesvn-773793eead2fea173ec9202ee938020592e86a02.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/svnfrontend/graphtree')
-rw-r--r--src/svnfrontend/graphtree/revgraphview.cpp14
-rw-r--r--src/svnfrontend/graphtree/revgraphview.h8
2 files changed, 11 insertions, 11 deletions
diff --git a/src/svnfrontend/graphtree/revgraphview.cpp b/src/svnfrontend/graphtree/revgraphview.cpp
index 494c73a..fec18ba 100644
--- a/src/svnfrontend/graphtree/revgraphview.cpp
+++ b/src/svnfrontend/graphtree/revgraphview.cpp
@@ -162,12 +162,12 @@ void RevGraphView::endInsert()
viewport()->setUpdatesEnabled(true);
}
-void RevGraphView::readDotOutput(KProcess*,char * buffer,int buflen)
+void RevGraphView::readDotOutput(TDEProcess*,char * buffer,int buflen)
{
dotOutput+=TQString::fromLocal8Bit(buffer, buflen);
}
-void RevGraphView::dotExit(KProcess*p)
+void RevGraphView::dotExit(TDEProcess*p)
{
if (p!=renderProcess)return;
// remove line breaks when lines to long
@@ -491,14 +491,14 @@ void RevGraphView::dumpRevtree()
}
}
*stream << "}\n"<<flush;
- renderProcess = new KProcess();
+ renderProcess = new TDEProcess();
renderProcess->setEnvironment("LANG","C");
*renderProcess << "dot";
*renderProcess << dotTmpFile->name() << "-Tplain";
- connect(renderProcess,TQT_SIGNAL(processExited(KProcess*)),this,TQT_SLOT(dotExit(KProcess*)));
- connect(renderProcess,TQT_SIGNAL(receivedStdout(KProcess*,char*,int)),
- this,TQT_SLOT(readDotOutput(KProcess*,char*,int)) );
- if (!renderProcess->start(KProcess::NotifyOnExit,KProcess::Stdout)) {
+ connect(renderProcess,TQT_SIGNAL(processExited(TDEProcess*)),this,TQT_SLOT(dotExit(TDEProcess*)));
+ connect(renderProcess,TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
+ this,TQT_SLOT(readDotOutput(TDEProcess*,char*,int)) );
+ if (!renderProcess->start(TDEProcess::NotifyOnExit,TDEProcess::Stdout)) {
TQString arguments;
for (unsigned c=0;c<renderProcess->args().count();++c) {
arguments+=TQString(" %1").arg(renderProcess->args()[c].data());
diff --git a/src/svnfrontend/graphtree/revgraphview.h b/src/svnfrontend/graphtree/revgraphview.h
index f0b39c7..d8d1972 100644
--- a/src/svnfrontend/graphtree/revgraphview.h
+++ b/src/svnfrontend/graphtree/revgraphview.h
@@ -30,7 +30,7 @@ namespace svn {
}
class KTempFile;
-class KProcess;
+class TDEProcess;
class RevisionTree;
class GraphTreeLabel;
class GraphViewTip;
@@ -98,8 +98,8 @@ public slots:
virtual void slotClientException(const TQString&what);
protected slots:
- virtual void readDotOutput(KProcess * proc,char * buffer,int buflen);
- virtual void dotExit(KProcess*);
+ virtual void readDotOutput(TDEProcess * proc,char * buffer,int buflen);
+ virtual void dotExit(TDEProcess*);
protected:
TQCanvas*m_Canvas;
@@ -109,7 +109,7 @@ protected:
TQObject*m_Listener;
KTempFile*dotTmpFile;
TQString dotOutput;
- KProcess*renderProcess;
+ TDEProcess*renderProcess;
trevTree m_Tree;
TQColor getBgColor(const TQString&nodeName)const;
bool isStart(const TQString&nodeName)const;