From 4a25ca5c80d9b88fdc1a0d44d1db47da47206899 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksysv/IOCore.cpp | 4 ++-- ksysv/TopWidget.cpp | 2 +- ksysv/kdltooltip.cpp | 6 +++--- ksysv/ksv_conf.cpp | 2 +- ksysv/ksv_core.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ksysv') diff --git a/ksysv/IOCore.cpp b/ksysv/IOCore.cpp index 3535317..8c7dc90 100644 --- a/ksysv/IOCore.cpp +++ b/ksysv/IOCore.cpp @@ -121,7 +121,7 @@ TQString ksv::IO::makeRelativePath (const TQString& from, const TQString& to) while (pos > -1) { const int old = pos + 1; - const int res = from.tqfind('/', old); + const int res = from.find('/', old); int length = 0; @@ -143,7 +143,7 @@ TQString ksv::IO::makeRelativePath (const TQString& from, const TQString& to) while (pos > -1) { const int old = pos + 1; - const int res = to.tqfind('/', old); + const int res = to.find('/', old); int length = 0; diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp index 53cde77..f039d63 100644 --- a/ksysv/TopWidget.cpp +++ b/ksysv/TopWidget.cpp @@ -725,7 +725,7 @@ void KSVTopLevel::print() // // if (line.isNull()) // // line = " "; -// // line.tqreplace( TQRegExp("\t"), " " ); +// // line.replace( TQRegExp("\t"), " " ); // // strncpy(buf,line.data(),160); diff --git a/ksysv/kdltooltip.cpp b/ksysv/kdltooltip.cpp index 1b98fa4..0260b5d 100644 --- a/ksysv/kdltooltip.cpp +++ b/ksysv/kdltooltip.cpp @@ -42,7 +42,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) const TQRect vert = mParent->verticalScrollBar()->tqgeometry(); const TQRect horiz = mParent->horizontalScrollBar()->tqgeometry(); - if (vert.tqcontains(p)) + if (vert.contains(p)) { rect = vert; @@ -51,7 +51,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) else text = mParent->tooltip(); } - else if (horiz.tqcontains(p)) + else if (horiz.contains(p)) { rect = horiz; if (!mParent->commonToolTips()) @@ -67,7 +67,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) KSVItem* item = static_cast (i); rect = mParent->header()->tqgeometry(); - if (rect.tqcontains (p)) + if (rect.contains (p)) { text = mParent->tooltip(); } diff --git a/ksysv/ksv_conf.cpp b/ksysv/ksv_conf.cpp index e279193..a4a713d 100644 --- a/ksysv/ksv_conf.cpp +++ b/ksysv/ksv_conf.cpp @@ -118,7 +118,7 @@ void KSVConfig::writeSettings() { bool KSVConfig::showRunlevel (int index) const { - if (mShowRunlevel.tqcontains (index)) + if (mShowRunlevel.contains (index)) return mShowRunlevel[index]; else return false; diff --git a/ksysv/ksv_core.cpp b/ksysv/ksv_core.cpp index 87d5528..b71ab78 100644 --- a/ksysv/ksv_core.cpp +++ b/ksysv/ksv_core.cpp @@ -59,7 +59,7 @@ TQString ksv::breakWords (const TQString& s, int amount) int pos = -1; for (int i = 1; i < amount; ++i) { - if ((pos = str.tqfind(' ', amount - i, false)) < 0 || (pos > maximum + i)) + if ((pos = str.find(' ', amount - i, false)) < 0 || (pos > maximum + i)) continue; else break; -- cgit v1.2.3