summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/autoreplace
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/autoreplace')
-rw-r--r--kopete/plugins/autoreplace/autoreplaceconfig.cpp2
-rw-r--r--kopete/plugins/autoreplace/autoreplaceplugin.cpp8
-rw-r--r--kopete/plugins/autoreplace/autoreplacepreferences.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/kopete/plugins/autoreplace/autoreplaceconfig.cpp b/kopete/plugins/autoreplace/autoreplaceconfig.cpp
index 09ef9d05..2537f44a 100644
--- a/kopete/plugins/autoreplace/autoreplaceconfig.cpp
+++ b/kopete/plugins/autoreplace/autoreplaceconfig.cpp
@@ -63,7 +63,7 @@ void AutoReplaceConfig::load()
TQStringList AutoReplaceConfig::defaultAutoReplaceList()
{
- return TQStringList::split( ",", i18n( "list_of_words_to_tqreplace",
+ return TQStringList::split( ",", i18n( "list_of_words_to_replace",
"ur,your,r,are,u,you,theres,there is,arent,are not,dont,do not" ) );
}
diff --git a/kopete/plugins/autoreplace/autoreplaceplugin.cpp b/kopete/plugins/autoreplace/autoreplaceplugin.cpp
index 62060ef3..d3470481 100644
--- a/kopete/plugins/autoreplace/autoreplaceplugin.cpp
+++ b/kopete/plugins/autoreplace/autoreplaceplugin.cpp
@@ -26,7 +26,7 @@
#include "autoreplaceconfig.h"
typedef KGenericFactory<AutoReplacePlugin> AutoReplacePluginFactory;
-K_EXPORT_COMPONENT_FACTORY( kopete_autotqreplace, AutoReplacePluginFactory( "kopete_autotqreplace" ) )
+K_EXPORT_COMPONENT_FACTORY( kopete_autoreplace, AutoReplacePluginFactory( "kopete_autoreplace" ) )
AutoReplacePlugin * AutoReplacePlugin::pluginStatic_ = 0L;
AutoReplacePlugin::AutoReplacePlugin( TQObject *tqparent, const char * name, const TQStringList & )
@@ -86,7 +86,7 @@ void AutoReplacePlugin::slotAboutToSend( Kopete::Message &msg )
{
TQString before = re.cap(1);
TQString after = re.cap(3);
- replaced_message.tqreplace( re, before + map.tqfind( it.key() ).data() + after );
+ replaced_message.replace( re, before + map.find( it.key() ).data() + after );
isReplaced=true;
}
}
@@ -101,8 +101,8 @@ void AutoReplacePlugin::slotAboutToSend( Kopete::Message &msg )
{
TQString replaced_message = msg.plainBody();
// eventually add . at the end of the lines, sent lines only
- replaced_message.tqreplace( TQRegExp( "([a-z])$" ), "\\1." );
- // replaced_message.tqreplace(TQRegExp( "([\\w])$" ), "\\1." );
+ replaced_message.replace( TQRegExp( "([a-z])$" ), "\\1." );
+ // replaced_message.replace(TQRegExp( "([\\w])$" ), "\\1." );
// the message is now the one with replaced words
msg.setBody( replaced_message, Kopete::Message::PlainText );
diff --git a/kopete/plugins/autoreplace/autoreplacepreferences.cpp b/kopete/plugins/autoreplace/autoreplacepreferences.cpp
index 628cb679..59d79b09 100644
--- a/kopete/plugins/autoreplace/autoreplacepreferences.cpp
+++ b/kopete/plugins/autoreplace/autoreplacepreferences.cpp
@@ -34,7 +34,7 @@
typedef KGenericFactory<AutoReplacePreferences> AutoReplacePreferencesFactory;
-K_EXPORT_COMPONENT_FACTORY( kcm_kopete_autotqreplace, AutoReplacePreferencesFactory( "kcm_kopete_autotqreplace" ) )
+K_EXPORT_COMPONENT_FACTORY( kcm_kopete_autoreplace, AutoReplacePreferencesFactory( "kcm_kopete_autoreplace" ) )
AutoReplacePreferences::AutoReplacePreferences( TQWidget *tqparent, const char * /* name */, const TQStringList &args )
: KCAutoConfigModule( AutoReplacePreferencesFactory::instance(), tqparent, args )
@@ -123,7 +123,7 @@ void AutoReplacePreferences::slotAddCouple()
TQListViewItem * lvi;
TQListViewItem * oldLvi = 0;
// see if we are replacing an existing entry
- if ( ( oldLvi = preferencesDialog->m_list->tqfindItem( k, 0 ) ) )
+ if ( ( oldLvi = preferencesDialog->m_list->findItem( k, 0 ) ) )
delete oldLvi;
lvi = new TQListViewItem( preferencesDialog->m_list, k, v );
// Triggers a size, tqgeometry and content update