From 539a35866f0bac8f00e493654d4a8ec6863726e2 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/applications/kpilot@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- conduits/sysinfoconduit/sysinfo-conduit.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'conduits/sysinfoconduit') diff --git a/conduits/sysinfoconduit/sysinfo-conduit.cc b/conduits/sysinfoconduit/sysinfo-conduit.cc index b46f5a3..3ee13e2 100644 --- a/conduits/sysinfoconduit/sysinfo-conduit.cc +++ b/conduits/sysinfoconduit/sysinfo-conduit.cc @@ -520,13 +520,13 @@ void SysInfoConduit::writeFile() for ( TQStringList::Iterator it = keepParts.begin(); it != keepParts.end(); ++it ) { TQRegExp re(CSL1("").tqarg(*it).tqarg(*it)); re.setMinimal(true); - output.tqreplace(re, CSL1("\\1")); + output.replace(re, CSL1("\\1")); } // Do a loop through all keys in fValues TQMap::Iterator it; for ( it = fValues.begin(); it != fValues.end(); ++it ) { - output.tqreplace(CSL1("#%1#").tqarg(it.key()), it.data()); + output.replace(CSL1("#%1#").tqarg(it.key()), it.data()); } // Insert the list of databases @@ -552,27 +552,27 @@ void SysInfoConduit::writeFile() * %8 .. modifyDate * %9 .. backupDate */ - newpatt.tqreplace(CSL1("%0"), TQString::tqfromLatin1(dbi.name)); + newpatt.replace(CSL1("%0"), TQString::tqfromLatin1(dbi.name)); set_long(&tmpchr[0],dbi.type); - newpatt.tqreplace(CSL1("%1"), TQString::tqfromLatin1(tmpchr)); + newpatt.replace(CSL1("%1"), TQString::tqfromLatin1(tmpchr)); set_long(&tmpchr[0],dbi.creator); - newpatt.tqreplace(CSL1("%2"), TQString::tqfromLatin1(tmpchr)); - newpatt.tqreplace(CSL1("%3"), TQString::number(dbi.index)); - newpatt.tqreplace(CSL1("%4"), TQString::number(dbi.flags)); - newpatt.tqreplace(CSL1("%5"), TQString::number(dbi.miscFlags)); - newpatt.tqreplace(CSL1("%6"), TQString::number(dbi.version)); + newpatt.replace(CSL1("%2"), TQString::tqfromLatin1(tmpchr)); + newpatt.replace(CSL1("%3"), TQString::number(dbi.index)); + newpatt.replace(CSL1("%4"), TQString::number(dbi.flags)); + newpatt.replace(CSL1("%5"), TQString::number(dbi.miscFlags)); + newpatt.replace(CSL1("%6"), TQString::number(dbi.version)); TQDateTime tm; tm.setTime_t(dbi.createDate); - newpatt.tqreplace(CSL1("%7"), tm.toString(Qt::LocalDate)); + newpatt.replace(CSL1("%7"), tm.toString(Qt::LocalDate)); tm.setTime_t(dbi.modifyDate); - newpatt.tqreplace(CSL1("%8"), tm.toString(Qt::LocalDate)); + newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate)); tm.setTime_t(dbi.backupDate); - newpatt.tqreplace(CSL1("%9"), tm.toString(Qt::LocalDate)); + newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate)); dbstring.append(newpatt); } // Now, just replace the whole found pattern by the string we just constructed. - output.tqreplace(re.cap(0), dbstring); + output.replace(re.cap(0), dbstring); } // Write out the result -- cgit v1.2.1