From 773793eead2fea173ec9202ee938020592e86a02 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:27:08 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- src/svnfrontend/graphtree/revgraphview.cpp | 14 +++++++------- src/svnfrontend/graphtree/revgraphview.h | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/svnfrontend/graphtree') 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"<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;cargs().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; -- cgit v1.2.1