diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 93f9fda465964160b66d9252d2cf9b4c284eab50 (patch) | |
tree | 51575108fadbf39900f2168fc504ad66b59906c3 /src/svnfrontend/graphtree | |
parent | 4be907152dfb5461311d9db1d63120c28a0bad0a (diff) | |
download | tdesvn-93f9fda465964160b66d9252d2cf9b4c284eab50.tar.gz tdesvn-93f9fda465964160b66d9252d2cf9b4c284eab50.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/svnfrontend/graphtree')
-rw-r--r-- | src/svnfrontend/graphtree/pannerview.cpp | 2 | ||||
-rw-r--r-- | src/svnfrontend/graphtree/revgraphview.cpp | 24 | ||||
-rw-r--r-- | src/svnfrontend/graphtree/revisiontree.cpp | 4 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/svnfrontend/graphtree/pannerview.cpp b/src/svnfrontend/graphtree/pannerview.cpp index c3a2586..e1dc0a6 100644 --- a/src/svnfrontend/graphtree/pannerview.cpp +++ b/src/svnfrontend/graphtree/pannerview.cpp @@ -71,7 +71,7 @@ void PannerView::contentsMouseMoveEvent(TQMouseEvent* e) void PannerView::contentsMousePressEvent(TQMouseEvent* e) { if (m_ZoomRect.isValid()) { - if (!m_ZoomRect.tqcontains(e->pos())) { + if (!m_ZoomRect.contains(e->pos())) { emit zoomRectMoved(e->pos().x() - m_ZoomRect.center().x(), e->pos().y() - m_ZoomRect.center().y()); } diff --git a/src/svnfrontend/graphtree/revgraphview.cpp b/src/svnfrontend/graphtree/revgraphview.cpp index 8d2c126..c5214db 100644 --- a/src/svnfrontend/graphtree/revgraphview.cpp +++ b/src/svnfrontend/graphtree/revgraphview.cpp @@ -172,7 +172,7 @@ void RevGraphView::dotExit(KProcess*p) if (p!=renderProcess)return; // remove line breaks when lines to long TQRegExp endslash("\\\\\\n"); - dotOutput.tqreplace(endslash,""); + dotOutput.replace(endslash,""); double scale = 1.0, scaleX = 1.0, scaleY = 1.0; double dotWidth, dotHeight; TQTextStream* dotStream; @@ -275,11 +275,11 @@ void RevGraphView::dotExit(KProcess*p) int indexHead = -1; TQMap<TQString,GraphTreeLabel*>::Iterator it; - it = m_NodeList.tqfind(node2Name); + it = m_NodeList.find(node2Name); if (it!=m_NodeList.end()) { it.data()->setSource(node1Name); } - it = m_NodeList.tqfind(node1Name); + it = m_NodeList.find(node1Name); if (it!=m_NodeList.end()) { GraphTreeLabel*tlab = it.data(); if (tlab) { @@ -342,7 +342,7 @@ bool RevGraphView::isStart(const TQString&nodeName)const { bool res = false; trevTree::ConstIterator it; - it = m_Tree.tqfind(nodeName); + it = m_Tree.find(nodeName); if (it==m_Tree.end()) { return res; } @@ -357,7 +357,7 @@ bool RevGraphView::isStart(const TQString&nodeName)const char RevGraphView::getAction(const TQString&nodeName)const { trevTree::ConstIterator it; - it = m_Tree.tqfind(nodeName); + it = m_Tree.find(nodeName); if (it==m_Tree.end()) { return (char)0; } @@ -367,7 +367,7 @@ char RevGraphView::getAction(const TQString&nodeName)const TQColor RevGraphView::getBgColor(const TQString&nodeName)const { trevTree::ConstIterator it; - it = m_Tree.tqfind(nodeName); + it = m_Tree.find(nodeName); TQColor res = TQt::white; if (it==m_Tree.end()) { return res; @@ -400,12 +400,12 @@ TQColor RevGraphView::getBgColor(const TQString&nodeName)const const TQString&RevGraphView::getLabelstring(const TQString&nodeName) { TQMap<TQString,TQString>::ConstIterator nIt; - nIt = m_LabelMap.tqfind(nodeName); + nIt = m_LabelMap.find(nodeName); if (nIt!=m_LabelMap.end()) { return nIt.data(); } trevTree::ConstIterator it1; - it1 = m_Tree.tqfind(nodeName); + it1 = m_Tree.find(nodeName); if (it1==m_Tree.end()) { return m_LabelMap[""]; } @@ -514,7 +514,7 @@ TQString RevGraphView::toolTip(const TQString&_nodename,bool full)const { TQString res = TQString(); trevTree::ConstIterator it; - it = m_Tree.tqfind(_nodename); + it = m_Tree.find(_nodename); if (it==m_Tree.end()) { return res; } @@ -895,7 +895,7 @@ void RevGraphView::makeCat(GraphTreeLabel*_l) return; } TQString n1 = _l->nodename(); - trevTree::ConstIterator it = m_Tree.tqfind(n1); + trevTree::ConstIterator it = m_Tree.find(n1); if (it==m_Tree.end()) { return; } @@ -917,14 +917,14 @@ void RevGraphView::makeDiff(const TQString&n1,const TQString&n2) { if (n1.isEmpty()||n2.isEmpty()) return; trevTree::ConstIterator it; - it = m_Tree.tqfind(n2); + it = m_Tree.find(n2); if (it==m_Tree.end()) { return; } svn::Revision sr(it.data().rev); TQString sp = _basePath+it.data().name; - it = m_Tree.tqfind(n1); + it = m_Tree.find(n1); if (it==m_Tree.end()) { return; } diff --git a/src/svnfrontend/graphtree/revisiontree.cpp b/src/svnfrontend/graphtree/revisiontree.cpp index a334a0c..2f84179 100644 --- a/src/svnfrontend/graphtree/revisiontree.cpp +++ b/src/svnfrontend/graphtree/revisiontree.cpp @@ -361,8 +361,8 @@ bool RevisionTree::isValid()const static TQString uniqueNodeName(long rev,const TQString&path) { TQString res = KCodecs::base64Encode(path.local8Bit(),false); - res.tqreplace("\"","_quot_"); - res.tqreplace(" ","_space_"); + res.replace("\"","_quot_"); + res.replace(" ","_space_"); TQString n; n.sprintf("%05ld",rev); res = "\""+n+TQString("_%1\"").tqarg(res); return res; |