summaryrefslogtreecommitdiffstats
path: root/conduits/sysinfoconduit
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit539a35866f0bac8f00e493654d4a8ec6863726e2 (patch)
tree8991e5472fe88379787cafa85542d94706bd6fa4 /conduits/sysinfoconduit
parent45598e35650c5806ecf2d684afeeb0da41c3ff6b (diff)
downloadkpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.tar.gz
kpilot-539a35866f0bac8f00e493654d4a8ec6863726e2.zip
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
Diffstat (limited to 'conduits/sysinfoconduit')
-rw-r--r--conduits/sysinfoconduit/sysinfo-conduit.cc26
1 files changed, 13 insertions, 13 deletions
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("<!--#if%1#(.*)#endif%1#-->").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<TQString,TQString>::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