summaryrefslogtreecommitdiffstats
path: root/kmail/antispamconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/antispamconfig.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/antispamconfig.cpp')
-rw-r--r--kmail/antispamconfig.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmail/antispamconfig.cpp b/kmail/antispamconfig.cpp
index 448bd9ac1..9a5b4a23e 100644
--- a/kmail/antispamconfig.cpp
+++ b/kmail/antispamconfig.cpp
@@ -59,13 +59,13 @@ void AntiSpamConfig::readConfig()
KConfigGroup general( &config, "General" );
unsigned int totalTools = general.readUnsignedNumEntry( "tools", 0 );
for ( unsigned int i = 1; i <= totalTools; ++i ) {
- KConfigGroup tool( &config, QString("Spamtool #%1").arg( i ) );
+ KConfigGroup tool( &config, TQString("Spamtool #%1").arg( i ) );
if ( tool.hasKey( "ScoreHeader" ) ) {
- QString name = tool.readEntry( "ScoreName" );
- QCString header = tool.readEntry( "ScoreHeader" ).latin1();
- QCString type = tool.readEntry( "ScoreType" ).latin1();
- QString score = tool.readEntryUntranslated( "ScoreValueRegexp" );
- QString threshold = tool.readEntryUntranslated( "ScoreThresholdRegexp" );
+ TQString name = tool.readEntry( "ScoreName" );
+ TQCString header = tool.readEntry( "ScoreHeader" ).latin1();
+ TQCString type = tool.readEntry( "ScoreType" ).latin1();
+ TQString score = tool.readEntryUntranslated( "ScoreValueRegexp" );
+ TQString threshold = tool.readEntryUntranslated( "ScoreThresholdRegexp" );
SpamAgentTypes typeE = SpamAgentNone;
if ( kasciistricmp( type.data(), "bool" ) == 0 )
typeE = SpamAgentBool;
@@ -75,20 +75,20 @@ void AntiSpamConfig::readConfig()
typeE = SpamAgentFloatLarge;
else if ( kasciistricmp( type.data(), "adjusted" ) == 0 )
typeE = SpamAgentAdjustedFloat;
- mAgents.append( SpamAgent( name, typeE, header, QRegExp( score ),
- QRegExp( threshold ) ) );
+ mAgents.append( SpamAgent( name, typeE, header, TQRegExp( score ),
+ TQRegExp( threshold ) ) );
}
}
}
const SpamAgents AntiSpamConfig::uniqueAgents() const
{
- QStringList seenAgents;
+ TQStringList seenAgents;
SpamAgents agents;
SpamAgents::ConstIterator it( mAgents.begin() );
SpamAgents::ConstIterator end( mAgents.end() );
for ( ; it != end ; ++it ) {
- const QString agent( ( *it ).name() );
+ const TQString agent( ( *it ).name() );
if ( seenAgents.find( agent ) == seenAgents.end() ) {
agents.append( *it );
seenAgents.append( agent );