summaryrefslogtreecommitdiffstats
path: root/libkdepim/kscoring.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /libkdepim/kscoring.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 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 8c5f737e..58595b93 100644
--- a/libkdepim/kscoring.cpp
+++ b/libkdepim/kscoring.cpp
@@ -936,7 +936,7 @@ KScoringRule* KScoringManager::addRule(const ScorableArticle& a, TQString group,
KScoringRule* KScoringManager::addRule(KScoringRule* expr)
{
- int i = allRules.findRef(expr);
+ int i = allRules.tqfindRef(expr);
if (i == -1) {
// only add a rule we don't know
addRuleInternal(expr);
@@ -965,7 +965,7 @@ void KScoringManager::addRuleInternal(KScoringRule *e)
void KScoringManager::cancelNewRule(KScoringRule *r)
{
// if e was'nt previously added to the list of rules, we delete it
- int i = allRules.findRef(r);
+ int i = allRules.tqfindRef(r);
if (i == -1) {
kdDebug(5100) << "deleting rule " << r->getName() << endl;
deleteRule(r);
@@ -1002,7 +1002,7 @@ void KScoringManager::setRuleName(KScoringRule *r, const TQString& s)
void KScoringManager::deleteRule(KScoringRule *r)
{
- int i = allRules.findRef(r);
+ int i = allRules.tqfindRef(r);
if (i != -1) {
allRules.remove();
emit changedRules();
@@ -1019,8 +1019,8 @@ void KScoringManager::editRule(KScoringRule *e, TQWidget *w)
void KScoringManager::moveRuleAbove( KScoringRule *above, KScoringRule *below )
{
- int aindex = allRules.findRef( above );
- int bindex = allRules.findRef( below );
+ int aindex = allRules.tqfindRef( above );
+ int bindex = allRules.tqfindRef( below );
if ( aindex <= 0 || bindex < 0 )
return;
if ( aindex < bindex )
@@ -1031,8 +1031,8 @@ void KScoringManager::moveRuleAbove( KScoringRule *above, KScoringRule *below )
void KScoringManager::moveRuleBelow( KScoringRule *below, KScoringRule *above )
{
- int bindex = allRules.findRef( below );
- int aindex = allRules.findRef( above );
+ int bindex = allRules.tqfindRef( below );
+ int aindex = allRules.tqfindRef( above );
if ( bindex < 0 || bindex >= (int)allRules.count() - 1 || aindex < 0 )
return;
if ( bindex < aindex )
@@ -1137,7 +1137,7 @@ TQString KScoringManager::findUniqueName() const
while (nr < 99999999) {
nr++;
- ret = i18n("rule %1").arg(nr);
+ ret = i18n("rule %1").tqarg(nr);
duplicated=false;
TQPtrListIterator<KScoringRule> it(allRules);