summaryrefslogtreecommitdiffstats
path: root/knode/knstringfilter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /knode/knstringfilter.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/knstringfilter.cpp')
-rw-r--r--knode/knstringfilter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/knode/knstringfilter.cpp b/knode/knstringfilter.cpp
index 4f69f7eaf..3f866902b 100644
--- a/knode/knstringfilter.cpp
+++ b/knode/knstringfilter.cpp
@@ -57,7 +57,7 @@ bool KNStringFilter::doFilter(const TQString &s)
-// replace placeholders
+// tqreplace placeholders
void KNStringFilter::expand(KNGroup *g)
{
KNConfig::Identity *id = (g) ? g->identity() : 0;
@@ -69,15 +69,15 @@ void KNStringFilter::expand(KNGroup *g)
}
expanded = data;
- expanded.replace(TQRegExp("%MYNAME"), id->name());
- expanded.replace(TQRegExp("%MYEMAIL"), id->email());
+ expanded.tqreplace(TQRegExp("%MYNAME"), id->name());
+ expanded.tqreplace(TQRegExp("%MYEMAIL"), id->email());
}
void KNStringFilter::load(KSimpleConfig *conf)
{
- con=conf->readBoolEntry("contains", true);
+ con=conf->readBoolEntry("tqcontains", true);
data=conf->readEntry("Data");
regExp=conf->readBoolEntry("regX", false);
}
@@ -86,7 +86,7 @@ void KNStringFilter::load(KSimpleConfig *conf)
void KNStringFilter::save(KSimpleConfig *conf)
{
- conf->writeEntry("contains", con);
+ conf->writeEntry("tqcontains", con);
conf->writeEntry("Data", data);
conf->writeEntry("regX", regExp);
}