From 72aaee9802d447ee21340b011856b9b355a58f1a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/modules/filetransferwindow/filetransferwindow.cpp | 12 ++++++------ src/modules/filetransferwindow/libkvifiletransferwindow.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/modules/filetransferwindow') diff --git a/src/modules/filetransferwindow/filetransferwindow.cpp b/src/modules/filetransferwindow/filetransferwindow.cpp index b34b843f..f6068378 100644 --- a/src/modules/filetransferwindow/filetransferwindow.cpp +++ b/src/modules/filetransferwindow/filetransferwindow.cpp @@ -460,7 +460,7 @@ void KviFileTransferWindow::openLocalFileTerminal() if(!t)return; TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - int idx = tmp.tqfindRev("/"); + int idx = tmp.findRev("/"); if(idx == -1)return; tmp = tmp.left(idx); tmp.append("\""); @@ -476,7 +476,7 @@ void KviFileTransferWindow::openLocalFileTerminal() TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - int idx = tmp.tqfindRev("/"); + int idx = tmp.findRev("/"); if(idx == -1)return; tmp = tmp.left(idx); @@ -518,7 +518,7 @@ void KviFileTransferWindow::openLocalFile() if(!t)return; TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - tmp.tqreplace("/","\\"); + tmp.replace("/","\\"); ShellExecute(0,"open",tmp.local8Bit().data(),NULL,NULL,SW_SHOWNORMAL); //You have to link the shell32.lib #else //!COMPILE_ON_WINDOWS // G&N end @@ -553,7 +553,7 @@ void KviFileTransferWindow::openLocalFileWith() if(!t)return; TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - tmp.tqreplace("/","\\"); + tmp.replace("/","\\"); tmp.prepend("rundll32.exe shell32.dll,OpenAs_RunDLL "); // this if to show the 'open with...' window WinExec(tmp.local8Bit().data(),SW_SHOWNORMAL); #else //!COMPILE_ON_WINDOWS @@ -598,7 +598,7 @@ void KviFileTransferWindow::openLocalFileFolder() TQString tmp = t->localFileName(); if(tmp.isEmpty())return; tmp=TQFileInfo(tmp).dirPath(TRUE); - tmp.tqreplace('/','\\'); + tmp.replace('/','\\'); tmp.prepend("explorer.exe "); WinExec(tmp.local8Bit().data(), SW_MAXIMIZE); #else //!COMPILE_ON_WINDOWS @@ -609,7 +609,7 @@ void KviFileTransferWindow::openLocalFileFolder() TQString tmp = t->localFileName(); if(tmp.isEmpty())return; - int idx = tmp.tqfindRev("/"); + int idx = tmp.findRev("/"); if(idx == -1)return; tmp = tmp.left(idx); diff --git a/src/modules/filetransferwindow/libkvifiletransferwindow.cpp b/src/modules/filetransferwindow/libkvifiletransferwindow.cpp index 1fe2217e..8a4c7e29 100644 --- a/src/modules/filetransferwindow/libkvifiletransferwindow.cpp +++ b/src/modules/filetransferwindow/libkvifiletransferwindow.cpp @@ -45,7 +45,7 @@ static KviModuleExtension * filetransferwindow_extension_alloc(KviModuleExtensio { if(s->pParams) { - if(TQVariant * v = s->pParams->tqfind("bCreateMinimized")) + if(TQVariant * v = s->pParams->find("bCreateMinimized")) { if(v->isValid()) { @@ -65,7 +65,7 @@ static KviModuleExtension * filetransferwindow_extension_alloc(KviModuleExtensio if(s->pParams) { - if(TQVariant * v = s->pParams->tqfind("bNoRaise")) + if(TQVariant * v = s->pParams->find("bNoRaise")) { if(v) { @@ -108,8 +108,8 @@ static bool filetransferwindow_kvs_cmd_open(KviKvsModuleCommandCall * c) KviPointerHashTable dict(17,true); dict.setAutoDelete(true); TQString dummy; - dict.tqreplace("bCreateMinimized",new TQVariant(c->hasSwitch('m',dummy))); - dict.tqreplace("bNoRaise",new TQVariant(c->hasSwitch('n',dummy))); + dict.replace("bCreateMinimized",new TQVariant(c->hasSwitch('m',dummy))); + dict.replace("bNoRaise",new TQVariant(c->hasSwitch('n',dummy))); d->allocate(c->window(),&dict,0); } else { -- cgit v1.2.1