diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 72aaee9802d447ee21340b011856b9b355a58f1a (patch) | |
tree | f97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/modules/dockwidget | |
parent | 5d03948cd3558c613fae1fad109635f860babcbb (diff) | |
download | kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip |
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
Diffstat (limited to 'src/modules/dockwidget')
-rw-r--r-- | src/modules/dockwidget/libkvidockwidget_qt3.cpp | 16 | ||||
-rw-r--r-- | src/modules/dockwidget/libkvidockwidget_qt4.cpp | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/modules/dockwidget/libkvidockwidget_qt3.cpp b/src/modules/dockwidget/libkvidockwidget_qt3.cpp index afee8824..f734d288 100644 --- a/src/modules/dockwidget/libkvidockwidget_qt3.cpp +++ b/src/modules/dockwidget/libkvidockwidget_qt3.cpp @@ -343,9 +343,9 @@ void KviDockWidget::tipRequest(KviDynamicToolTip *tip,const TQPoint &pnt) line = b->kviWindow()->lastMessageText(); if(!line.isEmpty()) { - line.tqreplace(TQChar('&'),"&"); - line.tqreplace(TQChar('<'),"<"); - line.tqreplace(TQChar('>'),">"); + line.replace(TQChar('&'),"&"); + line.replace(TQChar('<'),"<"); + line.replace(TQChar('>'),">"); tmp += "<b>"; tmp += b->kviWindow()->plainTextCaption(); tmp += "</b><br>"; @@ -641,7 +641,7 @@ void KviDockWidget::paintEvent(TQPaintEvent * event) } -static KviDockWidget * dockwidget_tqfind(KviFrame *f) +static KviDockWidget * dockwidget_find(KviFrame *f) { if(!g_pDockWidgetList)return 0; for(KviDockWidget * w = g_pDockWidgetList->first();w;w = g_pDockWidgetList->next()) @@ -687,7 +687,7 @@ static KviDockWidget * dockwidget_tqfind(KviFrame *f) static bool dockwidget_kvs_cmd_show(KviKvsModuleCommandCall * c) { - if(!(dockwidget_tqfind(c->window()->frame()))) + if(!(dockwidget_find(c->window()->frame()))) { KviDockWidget * w = new KviDockWidget(c->window()->frame(),"dock_widget"); #ifndef COMPILE_ON_WINDOWS @@ -717,7 +717,7 @@ static bool dockwidget_kvs_cmd_show(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_cmd_hide(KviKvsModuleCommandCall * c) { - KviDockWidget * w= dockwidget_tqfind(c->window()->frame()); + KviDockWidget * w= dockwidget_find(c->window()->frame()); if(w)delete w; // show the tqparent frame.. otherwise there will be no way to get it back if(!c->window()->frame()->isVisible()) @@ -745,7 +745,7 @@ static bool dockwidget_kvs_cmd_hide(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_cmd_hidewindow(KviKvsModuleCommandCall * c) { - KviDockWidget * w= dockwidget_tqfind(c->window()->frame()); + KviDockWidget * w= dockwidget_find(c->window()->frame()); if(w) { w->setPrevWindowState(c->window()->frame()->windowState()); @@ -772,7 +772,7 @@ static bool dockwidget_kvs_cmd_hidewindow(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_fnc_isvisible(KviKvsModuleFunctionCall * c) { - c->returnValue()->setBoolean(dockwidget_tqfind(c->window()->frame())); + c->returnValue()->setBoolean(dockwidget_find(c->window()->frame())); return true; } diff --git a/src/modules/dockwidget/libkvidockwidget_qt4.cpp b/src/modules/dockwidget/libkvidockwidget_qt4.cpp index c8ad4092..76316941 100644 --- a/src/modules/dockwidget/libkvidockwidget_qt4.cpp +++ b/src/modules/dockwidget/libkvidockwidget_qt4.cpp @@ -178,9 +178,9 @@ void KviDockWidget::tipRequest(KviDynamicToolTip *tip,const TQPoint &pnt) line = b->kviWindow()->lastMessageText(); if(!line.isEmpty()) { - line.tqreplace(TQChar('&'),"&"); - line.tqreplace(TQChar('<'),"<"); - line.tqreplace(TQChar('>'),">"); + line.replace(TQChar('&'),"&"); + line.replace(TQChar('<'),"<"); + line.replace(TQChar('>'),">"); tmp += "<b>"; tmp += b->kviWindow()->plainTextCaption(); tmp += "</b><br>"; @@ -476,7 +476,7 @@ void KviDockWidget::updateIcon() } -static KviDockWidget * dockwidget_tqfind(KviFrame *f) +static KviDockWidget * dockwidget_find(KviFrame *f) { if(!g_pDockWidgetList)return 0; for(KviDockWidget * w = g_pDockWidgetList->first();w;w = g_pDockWidgetList->next()) @@ -522,7 +522,7 @@ static KviDockWidget * dockwidget_tqfind(KviFrame *f) static bool dockwidget_kvs_cmd_show(KviKvsModuleCommandCall * c) { - if(!(dockwidget_tqfind(c->window()->frame()))) + if(!(dockwidget_find(c->window()->frame()))) { KviDockWidget * w = new KviDockWidget(c->window()->frame()); w->show(); @@ -548,7 +548,7 @@ static bool dockwidget_kvs_cmd_show(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_cmd_hide(KviKvsModuleCommandCall * c) { - KviDockWidget * w= dockwidget_tqfind(c->window()->frame()); + KviDockWidget * w= dockwidget_find(c->window()->frame()); if(w)delete w; // show the tqparent frame.. otherwise there will be no way to get it back if(!c->window()->frame()->isVisible()) @@ -576,7 +576,7 @@ static bool dockwidget_kvs_cmd_hide(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_cmd_hidewindow(KviKvsModuleCommandCall * c) { - KviDockWidget * w= dockwidget_tqfind(c->window()->frame()); + KviDockWidget * w= dockwidget_find(c->window()->frame()); if(w) { c->window()->frame()->hide(); @@ -602,7 +602,7 @@ static bool dockwidget_kvs_cmd_hidewindow(KviKvsModuleCommandCall * c) static bool dockwidget_kvs_fnc_isvisible(KviKvsModuleFunctionCall * c) { - c->returnValue()->setBoolean(dockwidget_tqfind(c->window()->frame())); + c->returnValue()->setBoolean(dockwidget_find(c->window()->frame())); return true; } |