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/action/libkviaction.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/modules/action') diff --git a/src/modules/action/libkviaction.cpp b/src/modules/action/libkviaction.cpp index 34344906..ead09cd5 100644 --- a/src/modules/action/libkviaction.cpp +++ b/src/modules/action/libkviaction.cpp @@ -108,7 +108,7 @@ static bool action_kvs_cmd_trigger(KviKvsModuleCommandCall * c) { a->activate(); } else { - if(!c->switches()->tqfind('q',"quiet")) + if(!c->switches()->find('q',"quiet")) c->warning(__tr2qs("The action \"%1\" is disabled").tqarg(szName)); } } else { @@ -157,7 +157,7 @@ static bool action_kvs_cmd_enable(KviKvsModuleCommandCall * c) { if(!a->isEnabled())a->setEnabled(true); } else { - if(!c->switches()->tqfind('q',"quiet")) + if(!c->switches()->find('q',"quiet")) c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName)); } @@ -205,7 +205,7 @@ static bool action_kvs_cmd_disable(KviKvsModuleCommandCall * c) { if(a->isEnabled())a->setEnabled(false); } else { - if(!c->switches()->tqfind('q',"quiet")) + if(!c->switches()->find('q',"quiet")) c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName)); } @@ -251,11 +251,11 @@ static bool action_kvs_cmd_destroy(KviKvsModuleCommandCall * c) { a->suicide(); } else { - if(!c->switches()->tqfind('q',"quiet")) + if(!c->switches()->find('q',"quiet")) c->warning(__tr2qs("The action \"%1\" is a core action and cannot be destroyed").tqarg(szName)); } } else { - if(!c->switches()->tqfind('q',"quiet")) + if(!c->switches()->find('q',"quiet")) c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName)); } @@ -382,9 +382,9 @@ static bool action_kvs_cmd_create(KviKvsModuleCallbackCommandCall * c) int iFlags = 0; - if(c->switches()->tqfind('i',"bind-to-context"))iFlags |= KviAction::NeedsContext; - if(c->switches()->tqfind('c',"bind-to-connection"))iFlags |= KviAction::NeedsConnection | KviAction::NeedsContext; - if(c->switches()->tqfind('l',"enable-at-login")) + if(c->switches()->find('i',"bind-to-context"))iFlags |= KviAction::NeedsContext; + if(c->switches()->find('c',"bind-to-connection"))iFlags |= KviAction::NeedsConnection | KviAction::NeedsContext; + if(c->switches()->find('l',"enable-at-login")) { if(iFlags & KviAction::NeedsConnection) iFlags |= KviAction::EnableAtLogin; @@ -396,12 +396,12 @@ static bool action_kvs_cmd_create(KviKvsModuleCallbackCommandCall * c) c->switches()->getAsStringIfExisting('w',"window-types",szWindows); if(!szWindows.isEmpty()) { - if(szWindows.tqfind('c') != -1)iFlags |= KviAction::WindowChannel; - if(szWindows.tqfind('x') != -1)iFlags |= KviAction::WindowConsole; - if(szWindows.tqfind('d') != -1)iFlags |= KviAction::WindowDccChat; - if(szWindows.tqfind('q') != -1)iFlags |= KviAction::WindowQuery; + if(szWindows.find('c') != -1)iFlags |= KviAction::WindowChannel; + if(szWindows.find('x') != -1)iFlags |= KviAction::WindowConsole; + if(szWindows.find('d') != -1)iFlags |= KviAction::WindowDccChat; + if(szWindows.find('q') != -1)iFlags |= KviAction::WindowQuery; } - if(c->switches()->tqfind('s',"enable-on-selected")) + if(c->switches()->find('s',"enable-on-selected")) { if(iFlags & (KviAction::WindowChannel | KviAction::WindowConsole | KviAction::WindowQuery)) iFlags |= KviAction::WindowOnlyIfUsersSelected; -- cgit v1.2.1