summaryrefslogtreecommitdiffstats
path: root/ksirc/baserules.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/baserules.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/baserules.cpp')
-rw-r--r--ksirc/baserules.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/ksirc/baserules.cpp b/ksirc/baserules.cpp
index 11e5850c..df4a40cc 100644
--- a/ksirc/baserules.cpp
+++ b/ksirc/baserules.cpp
@@ -3,15 +3,15 @@
#include "ksopts.h"
#include "ksircprocess.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#include <stdio.h>
-void KSMBaseRules::sirc_receive(QCString, bool)
+void KSMBaseRules::sirc_receive(TQCString, bool)
{
}
-void KSMBaseRules::control_message(int, QString)
+void KSMBaseRules::control_message(int, TQString)
{
}
@@ -81,8 +81,8 @@ filterRuleList *KSMBaseRules::defaultRules()
frl->append(fr);
}
if( ksopts->msgContainNick.isValid() ){
- //QString nick = ksopts->nick;
- QString nick = ksircProcess()->getNick();
+ //TQString nick = ksopts->nick;
+ TQString nick = ksircProcess()->getNick();
if ( !nick.isEmpty() ) {
if(nick.length() > 83){
qDebug("Nick too long");
@@ -92,7 +92,7 @@ filterRuleList *KSMBaseRules::defaultRules()
* Since the nick is used in the regex we must
* escape all regex words
*/
- nick = QRegExp::escape(nick);
+ nick = TQRegExp::escape(nick);
sprintf(match_us,
"(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", nick.latin1());
@@ -107,16 +107,16 @@ filterRuleList *KSMBaseRules::defaultRules()
}
}
if( ksopts->msg1Contain.isValid() ){
- //QString nick = ksopts->nick;
+ //TQString nick = ksopts->nick;
/*
* Since the nick is used in the regex we must
* escape all regex words
*/
- QString msg = ksopts->msg1String;
+ TQString msg = ksopts->msg1String;
if(msg.length() > 0){
if(ksopts->msg1Regex == false)
- msg = QRegExp::escape(msg);
+ msg = TQRegExp::escape(msg);
snprintf(msg1_match, 100,
"(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", msg.latin1());
@@ -131,16 +131,16 @@ filterRuleList *KSMBaseRules::defaultRules()
}
}
if( ksopts->msg2Contain.isValid() ){
- //QString nick = ksopts->nick;
+ //TQString nick = ksopts->nick;
/*
* Since the nick is used in the regex we must
* escape all regex words
*/
- QString msg = ksopts->msg2String;
+ TQString msg = ksopts->msg2String;
if(msg.length() > 0){
if(ksopts->msg2Regex == false)
- msg = QRegExp::escape(msg);
+ msg = TQRegExp::escape(msg);
snprintf(msg2_match, 100,
"(?i)<\\S+>.*\\s%s(,.*|\02:.*|:.*|\\s.*|$)", msg.latin1());