summaryrefslogtreecommitdiffstats
path: root/libkdepim/kscoring.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 /libkdepim/kscoring.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 'libkdepim/kscoring.cpp')
-rw-r--r--libkdepim/kscoring.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkdepim/kscoring.cpp b/libkdepim/kscoring.cpp
index 17dd1d439..c9d1f6143 100644
--- a/libkdepim/kscoring.cpp
+++ b/libkdepim/kscoring.cpp
@@ -47,19 +47,19 @@ static TQString toXml(const TQString& str)
uint i = 0;
while ( i < len ) {
if (tmp[(int)i] == '<') {
- tmp.replace(i, 1, "&lt;");
+ tmp.tqreplace(i, 1, "&lt;");
len += 3;
i += 4;
} else if (tmp[(int)i] == '"') {
- tmp.replace(i, 1, "&quot;");
+ tmp.tqreplace(i, 1, "&quot;");
len += 5;
i += 6;
} else if (tmp[(int)i] == '&') {
- tmp.replace(i, 1, "&amp;");
+ tmp.tqreplace(i, 1, "&amp;");
len += 4;
i += 5;
} else if (tmp[(int)i] == '>') {
- tmp.replace(i, 1, "&gt;");
+ tmp.tqreplace(i, 1, "&gt;");
len += 3;
i += 4;
} else {
@@ -91,7 +91,7 @@ NotifyDialog::NotifyDialog(TQWidget* p)
void NotifyDialog::slotShowAgainToggled(bool flag)
{
- dict.replace(msg,!flag);
+ dict.tqreplace(msg,!flag);
kdDebug(5100) << "note \"" << note << "\" will popup again: " << flag << endl;
}
@@ -109,7 +109,7 @@ void NotifyDialog::display(ScorableArticle& a, const TQString& s)
arg(a.subject()).
arg(s);
me->note->setText(msg);
- if ( i == dict.end() ) i = dict.replace(s,false);
+ if ( i == dict.end() ) i = dict.tqreplace(s,false);
me->adjustSize();
me->exec();
}
@@ -773,7 +773,7 @@ TQString KScoringRule::getExpireDateString() const
bool KScoringRule::isExpired() const
{
- return (expires.isValid() && (expires < TQDate::currentDate()));
+ return (expires.isValid() && (expires < TQDate::tqcurrentDate()));
}
@@ -925,7 +925,7 @@ KScoringRule* KScoringManager::addRule(const ScorableArticle& a, TQString group,
new KScoringExpression("From","CONTAINS",
a.from(),"0"));
if (score) rule->addAction(new ActionSetScore(score));
- rule->setExpireDate(TQDate::currentDate().addDays(30));
+ rule->setExpireDate(TQDate::tqcurrentDate().addDays(30));
addRule(rule);
KScoringEditor *edit = KScoringEditor::createEditor(this);
edit->setRule(rule);