summaryrefslogtreecommitdiffstats
path: root/kedit/kedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit6335dc55802871b5a43492f217b6edbb420204c4 (patch)
tree50c6c8672a52687568edea475614dfe3d98e62e5 /kedit/kedit.cpp
parent9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff)
downloadtdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz
tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kedit/kedit.cpp')
-rw-r--r--kedit/kedit.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kedit/kedit.cpp b/kedit/kedit.cpp
index d374987..efffb67 100644
--- a/kedit/kedit.cpp
+++ b/kedit/kedit.cpp
@@ -215,7 +215,7 @@ void TopLevel::setupActions()
KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(select_all()), actionCollection());
KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(search()), actionCollection());
KStdAction::findNext(TQT_TQOBJECT(this), TQT_SLOT(search_again()), actionCollection());
- KStdAction::replace(TQT_TQOBJECT(this), TQT_SLOT(tqreplace()), actionCollection());
+ KStdAction::replace(TQT_TQOBJECT(this), TQT_SLOT(replace()), actionCollection());
(void)new KAction(i18n("&Insert File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(file_insert()),
actionCollection(), "insert_file");
@@ -445,11 +445,11 @@ TQString TopLevel::replaceISpell(TQString msg, int client)
{
switch(client)
{
- case KS_CLIENT_ISPELL: msg.tqreplace("ISpell", "<b>ispell</b>"); break;
- case KS_CLIENT_ASPELL: msg.tqreplace("ISpell", "<b>aspell</b>"); break;
- case KS_CLIENT_HSPELL: msg.tqreplace("ISpell", "<b>hspell</b>"); break;
+ case KS_CLIENT_ISPELL: msg.replace("ISpell", "<b>ispell</b>"); break;
+ case KS_CLIENT_ASPELL: msg.replace("ISpell", "<b>aspell</b>"); break;
+ case KS_CLIENT_HSPELL: msg.replace("ISpell", "<b>hspell</b>"); break;
}
- msg.tqreplace("\n", "<p>");
+ msg.replace("\n", "<p>");
return "<qt>"+msg+"</qt>";
}
@@ -762,7 +762,7 @@ void TopLevel::mail()
// Default subject string
//
TQString defaultsubject = name();
- int index = defaultsubject.tqfindRev('/');
+ int index = defaultsubject.findRev('/');
if( index != -1)
defaultsubject = defaultsubject.right(defaultsubject.length() - index - 1 );
@@ -788,7 +788,7 @@ void TopLevel::fancyprint(){
y += fm.ascent();
TQString line;
line = eframe->textLine(i);
- line.tqreplace( TQRegExp("\t"), " " );
+ line.replace( TQRegExp("\t"), " " );
strncpy(buf,line.local8Bit(),160);
for (int j = 0 ; j <150; j++){
if (!isprint(buf[j]))
@@ -818,7 +818,7 @@ void TopLevel::search(){
statusbar_slot();
}
-void TopLevel::tqreplace(){
+void TopLevel::replace(){
eframe->replace();
statusbar_slot();
}