Browse Source

rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 11 years ago
parent
commit
9a3f0aacd4
  1. 10
      drkonqi/backtrace.cpp
  2. 4
      drkonqi/debugger.cpp
  3. 10
      kappfinder/common.cpp
  4. 10
      kappfinder/toplevel.cpp
  5. 2
      kate/app/kateapp.cpp
  6. 4
      kate/app/katedocmanager.cpp
  7. 10
      kate/app/kateexternaltools.cpp
  8. 4
      kate/app/katefileselector.cpp
  9. 12
      kate/app/kategrepdialog.cpp
  10. 6
      kate/app/katemdi.cpp
  11. 2
      kate/app/kateviewmanager.cpp
  12. 14
      kate/app/kateviewspacecontainer.cpp
  13. 4
      kate/app/kwritemain.cpp
  14. 4
      kcminit/main.cpp
  15. 4
      kcontrol/background/bgadvanced.cpp
  16. 22
      kcontrol/background/bgdialog.cpp
  17. 14
      kcontrol/background/bgrender.cpp
  18. 22
      kcontrol/background/bgsettings.cpp
  19. 8
      kcontrol/clock/dtime.cpp
  20. 2
      kcontrol/clock/tzone.cpp
  21. 8
      kcontrol/colors/colorscm.cpp
  22. 6
      kcontrol/colors/widgetcanvas.cpp
  23. 20
      kcontrol/crypto/crypto.cpp
  24. 6
      kcontrol/css/template.cpp
  25. 2
      kcontrol/display/display.cpp
  26. 2
      kcontrol/ebrowsing/plugins/ikws/ikwsopts.cpp
  27. 44
      kcontrol/ebrowsing/plugins/ikws/kuriikwsfiltereng.cpp
  28. 4
      kcontrol/ebrowsing/plugins/ikws/searchproviderdlg.cpp
  29. 6
      kcontrol/ebrowsing/plugins/localdomain/localdomainurifilter.cpp
  30. 30
      kcontrol/ebrowsing/plugins/shorturi/kshorturifilter.cpp
  31. 8
      kcontrol/filetypes/filetypesview.cpp
  32. 22
      kcontrol/filetypes/typeslistitem.cpp
  33. 36
      kcontrol/fonts/kxftconfig.cpp
  34. 8
      kcontrol/icons/icons.cpp
  35. 2
      kcontrol/icons/iconthemes.cpp
  36. 26
      kcontrol/info/info_fbsd.cpp
  37. 14
      kcontrol/info/info_linux.cpp
  38. 16
      kcontrol/info/info_netbsd.cpp
  39. 12
      kcontrol/info/info_openbsd.cpp
  40. 4
      kcontrol/info/info_svr4.cpp
  41. 8
      kcontrol/info/opengl.cpp
  42. 2
      kcontrol/input/core/themepage.cpp
  43. 16
      kcontrol/input/xcursor/themepage.cpp
  44. 10
      kcontrol/ioslaveinfo/kcmioslaveinfo.cpp
  45. 6
      kcontrol/joystick/joywidget.cpp
  46. 2
      kcontrol/kcontrol/helpwidget.cpp
  47. 2
      kcontrol/kcontrol/moduleiconview.cpp
  48. 4
      kcontrol/kcontrol/modulemenu.cpp
  49. 8
      kcontrol/kcontrol/modules.cpp
  50. 4
      kcontrol/kcontrol/moduletreeview.cpp
  51. 2
      kcontrol/kcontrol/toplevel.cpp
  52. 12
      kcontrol/kded/kcmkded.cpp
  53. 2
      kcontrol/kdm/kbackedcombobox.cpp
  54. 4
      kcontrol/kdm/kdm-appear.cpp
  55. 10
      kcontrol/kdm/kdm-conv.cpp
  56. 12
      kcontrol/kdm/kdm-users.cpp
  57. 16
      kcontrol/kdm/main.cpp
  58. 4
      kcontrol/keys/commandShortcuts.cpp
  59. 2
      kcontrol/keys/kaccelaction.h
  60. 12
      kcontrol/keys/keyconfig.cpp
  61. 12
      kcontrol/keys/shortcuts.cpp
  62. 14
      kcontrol/keys/treeview.cpp
  63. 6
      kcontrol/kfontinst/kcmfontinst/KCmFontInst.cpp
  64. 68
      kcontrol/kfontinst/kfile-plugin/KFileFont.cpp
  65. 2
      kcontrol/kfontinst/kfontinst/FontEngine.cpp
  66. 14
      kcontrol/kfontinst/kfontinst/Fontmap.cpp
  67. 2
      kcontrol/kfontinst/kfontinst/Main.cpp
  68. 4
      kcontrol/kfontinst/kfontinst/XConfig.cpp
  69. 48
      kcontrol/kfontinst/kio/KioFonts.cpp
  70. 2
      kcontrol/kfontinst/kio/KioFonts.h
  71. 56
      kcontrol/kfontinst/lib/FcEngine.cpp
  72. 14
      kcontrol/kfontinst/lib/Misc.cpp
  73. 2
      kcontrol/kicker/advancedDialog.cpp
  74. 4
      kcontrol/kicker/applettab_impl.cpp
  75. 12
      kcontrol/kicker/lookandfeeltab_impl.cpp
  76. 2
      kcontrol/kicker/main.cpp
  77. 2
      kcontrol/kicker/positiontab_impl.cpp
  78. 26
      kcontrol/kio/fakeuaprovider.cpp
  79. 2
      kcontrol/kio/kcookiesmanagement.cpp
  80. 2
      kcontrol/kio/kcookiespolicies.cpp
  81. 2
      kcontrol/kio/kmanualproxydlg.cpp
  82. 6
      kcontrol/kio/policydlg.h
  83. 2
      kcontrol/kio/smbrodlg.cpp
  84. 2
      kcontrol/kio/uagentproviderdlg.cpp
  85. 26
      kcontrol/kio/useragentdlg.cpp
  86. 6
      kcontrol/konq/desktopbehavior_impl.cpp
  87. 2
      kcontrol/konqhtml/domainlistview.cpp
  88. 4
      kcontrol/konqhtml/filteropts.cpp
  89. 10
      kcontrol/konqhtml/jspolicies.cpp
  90. 4
      kcontrol/konsole/schemaeditor.cpp
  91. 12
      kcontrol/krdb/krdb.cpp
  92. 16
      kcontrol/kthememanager/ktheme.cpp
  93. 6
      kcontrol/kthememanager/kthememanager.cpp
  94. 14
      kcontrol/locale/kcmlocale.cpp
  95. 2
      kcontrol/locale/localemon.cpp
  96. 2
      kcontrol/locale/localenum.cpp
  97. 2
      kcontrol/privacy/kprivacymanager.cpp
  98. 18
      kcontrol/randr/krandrmodule.cpp
  99. 6
      kcontrol/randr/krandrpassivepopup.cpp
  100. 2
      kcontrol/randr/krandrtray.cpp
  101. 14
      kcontrol/samba/kcmsambaimports.cpp
  102. 16
      kcontrol/samba/kcmsambastatistics.cpp
  103. 20
      kcontrol/samba/ksmbstatus.cpp
  104. 2
      kcontrol/screensaver/saverconfig.cpp
  105. 4
      kcontrol/screensaver/scrnsave.cpp
  106. 10
      kcontrol/style/kcmstyle.cpp
  107. 8
      kcontrol/usbview/kcmusb.cpp
  108. 6
      kcontrol/usbview/usbdevices.cpp
  109. 8
      kdcop/kdcoplistview.cpp
  110. 10
      kdcop/kdcopwindow.cpp
  111. 2
      kdebugdialog/kdebugdialog.cpp
  112. 8
      kdebugdialog/klistdebugdialog.cpp
  113. 2
      kdebugdialog/main.cpp
  114. 8
      kdepasswd/kcm/chfnprocess.cpp
  115. 4
      kdepasswd/passwd.cpp
  116. 2
      kdeprint/descriptions/sortthem.cpp
  117. 2
      kdeprint/kdeprintfax/conffilters.cpp
  118. 2
      kdeprint/kdeprintfax/defcmds.cpp
  119. 2
      kdeprint/kdeprintfax/faxab.cpp
  120. 20
      kdeprint/kdeprintfax/faxctrl.cpp
  121. 12
      kdeprint/kdeprintfax/kdeprintfax.cpp
  122. 4
      kdeprint/kjobviewer/kjobviewer.cpp
  123. 4
      kdeprint/slave/kio_print.cpp
  124. 6
      kdesktop/desktop.cc
  125. 2
      kdesktop/init.cc
  126. 2
      kdesktop/kcustommenu.cc
  127. 20
      kdesktop/kdiconview.cc
  128. 6
      kdesktop/kxdglauncher.cpp
  129. 2
      kdesktop/lock/lockdlg.cc
  130. 2
      kdesktop/lock/lockprocess.cc
  131. 2
      kdesktop/lock/main.cc
  132. 2
      kdesktop/main.cc
  133. 8
      kdesktop/minicli.cpp
  134. 24
      kdesktop/pixmapserver.cc
  135. 6
      kdesu/kdesud/handler.cpp
  136. 2
      kdesu/kdesud/kdesud.cpp
  137. 14
      kdesu/kdesud/repo.cpp
  138. 4
      kdialog/kdialog.cpp
  139. 2
      kdm/kfrontend/kconsole.cpp
  140. 4
      kdm/kfrontend/kdmshutdown.cpp
  141. 2
      kdm/kfrontend/kgdialog.cpp
  142. 16
      kdm/kfrontend/kgreeter.cpp
  143. 4
      kdm/kfrontend/kgverify.cpp
  144. 18
      kdm/kfrontend/themer/kdmitem.cpp
  145. 6
      kdm/kfrontend/themer/kdmlabel.cpp
  146. 2
      kdm/kfrontend/themer/kdmpixmap.cpp
  147. 4
      kdm/kfrontend/themer/kdmthemer.cpp
  148. 18
      kdmlib/dmctl.cpp
  149. 8
      kdmlib/kgreet_classic.cpp
  150. 16
      kdmlib/kgreet_winbind.cpp
  151. 4
      kfind/kdatecombo.cpp
  152. 2
      kfind/kfinddlg.cpp
  153. 4
      kfind/kftabdlg.cpp
  154. 2
      kfind/kfwin.cpp
  155. 18
      kfind/kquery.cpp
  156. 2
      khelpcenter/docentry.cpp
  157. 4
      khelpcenter/docmetainfo.cpp
  158. 6
      khelpcenter/formatter.cpp
  159. 2
      khelpcenter/glossary.cpp
  160. 2
      khelpcenter/history.cpp
  161. 10
      khelpcenter/htmlsearch/htmlsearch.cpp
  162. 4
      khelpcenter/htmlsearch/kcmhtmlsearch.cpp
  163. 6
      khelpcenter/htmlsearch/ktagcombobox.cpp
  164. 8
      khelpcenter/infotree.cpp
  165. 10
      khelpcenter/kcmhelpcenter.cpp
  166. 6
      khelpcenter/navigator.cpp
  167. 2
      khelpcenter/scrollkeepertreebuilder.cpp
  168. 38
      khelpcenter/searchengine.cpp
  169. 18
      khelpcenter/searchhandler.cpp
  170. 2
      khelpcenter/toc.cpp
  171. 4
      khelpcenter/view.cpp
  172. 2
      khotkeys/app/app.cpp
  173. 2
      khotkeys/kcontrol/condition_list_widget.cpp
  174. 8
      khotkeys/shared/actions.cpp
  175. 4
      khotkeys/shared/gestures.cpp
  176. 8
      khotkeys/shared/input.cpp
  177. 2
      khotkeys/shared/khotkeysglobal.cpp
  178. 2
      khotkeys/shared/settings.cpp
  179. 8
      khotkeys/shared/triggers.cpp
  180. 4
      khotkeys/shared/voices.cpp
  181. 4
      khotkeys/shared/windows.cpp
  182. 22
      kicker/applets/clock/clock.cpp
  183. 4
      kicker/applets/clock/zone.cpp
  184. 2
      kicker/applets/launcher/quickaddappsmenu.cpp
  185. 2
      kicker/applets/launcher/quickbutton.cpp
  186. 2
      kicker/applets/launcher/quicklauncher.cpp
  187. 6
      kicker/applets/media/mediaapplet.cpp
  188. 4
      kicker/applets/media/preferencesdialog.cpp
  189. 4
      kicker/applets/minipager/pagerbutton.cpp
  190. 2
      kicker/applets/naughty/NaughtyApplet.cpp
  191. 14
      kicker/applets/naughty/NaughtyProcessMonitor.cpp
  192. 2
      kicker/applets/swallow/swallow.cpp
  193. 18
      kicker/applets/systemtray/systemtrayapplet.cpp
  194. 2
      kicker/extensions/dockbar/dockbarextension.cpp
  195. 2
      kicker/extensions/kasbar/kasbar.cpp
  196. 2
      kicker/extensions/kasbar/kasbar.h
  197. 2
      kicker/extensions/kasbar/kastaskitem.cpp
  198. 6
      kicker/kicker/buttons/knewbutton.cpp
  199. 4
      kicker/kicker/core/applethandle.cpp
  200. 4
      kicker/kicker/core/container_extension.cpp
  201. 8
      kicker/kicker/core/containerarea.cpp
  202. 4
      kicker/kicker/core/containerarealayout.cpp
  203. 8
      kicker/kicker/core/extensionmanager.cpp
  204. 2
      kicker/kicker/core/main.cpp
  205. 4
      kicker/kicker/core/pluginmanager.cpp
  206. 2
      kicker/kicker/kicker-3.4-reverseLayout.cpp
  207. 10
      kicker/kicker/plugins/kickoff-beagle-plugin.cpp
  208. 6
      kicker/kicker/ui/addapplet.cpp
  209. 4
      kicker/kicker/ui/addapplet_mnu.cpp
  210. 2
      kicker/kicker/ui/addbutton_mnu.cpp
  211. 2
      kicker/kicker/ui/addextension_mnu.cpp
  212. 2
      kicker/kicker/ui/appletop_mnu.cpp
  213. 14
      kicker/kicker/ui/browser_mnu.cpp
  214. 4
      kicker/kicker/ui/exe_dlg.cpp
  215. 14
      kicker/kicker/ui/itemview.cpp
  216. 2
      kicker/kicker/ui/k_mnu.cpp
  217. 82
      kicker/kicker/ui/k_new_mnu.cpp
  218. 4
      kicker/kicker/ui/kickoff_bar.cpp
  219. 4
      kicker/kicker/ui/query.cpp
  220. 2
      kicker/kicker/ui/removeapplet_mnu.cpp
  221. 2
      kicker/kicker/ui/removeextension_mnu.cpp
  222. 34
      kicker/kicker/ui/service_mnu.cpp
  223. 2
      kicker/libkicker/global.cpp
  224. 6
      kicker/libkicker/panelbutton.cpp
  225. 2
      kicker/menuext/kate/katesessionmenu.cpp
  226. 2
      kicker/menuext/konsole/konsolebookmarkmenu.cpp
  227. 12
      kicker/menuext/prefmenu/prefmenu.cpp
  228. 8
      kicker/menuext/recentdocs/recentdocsmenu.cpp
  229. 4
      kicker/menuext/remote/remotemenu.cpp
  230. 2
      kicker/menuext/system/systemmenu.cpp
  231. 14
      kicker/menuext/tom/tom.cc
  232. 20
      kicker/taskbar/taskbar.cpp
  233. 12
      kicker/taskbar/taskcontainer.cpp
  234. 6
      kicker/taskbar/taskcontainer.h
  235. 2
      kicker/taskmanager/tasklmbmenu.cpp
  236. 14
      kicker/taskmanager/taskmanager.cpp
  237. 2
      kicker/taskmanager/taskmanager.h
  238. 4
      kicker/taskmanager/taskrmbmenu.cpp
  239. 6
      kioslave/cgi/cgi.cpp
  240. 2
      kioslave/finger/kio_finger.cpp
  241. 36
      kioslave/fish/fish.cpp
  242. 26
      kioslave/floppy/kio_floppy.cpp
  243. 4
      kioslave/home/homeimpl.cpp
  244. 4
      kioslave/home/kdedmodule/homedirnotify.cpp
  245. 4
      kioslave/info/info.cc
  246. 6
      kioslave/ldap/kio_ldap.cpp
  247. 34
      kioslave/mac/kio_mac.cpp
  248. 76
      kioslave/man/kio_man.cpp
  249. 36
      kioslave/man/man2html.cpp
  250. 2
      kioslave/media/kcmodule/notifiermodule.cpp
  251. 2
      kioslave/media/kcmodule/serviceconfigdialog.cpp
  252. 2
      kioslave/media/libmediacommon/actionlistboxitem.cpp
  253. 2
      kioslave/media/libmediacommon/medium.cpp
  254. 4
      kioslave/media/libmediacommon/medium.h
  255. 2
      kioslave/media/libmediacommon/notifieraction.cpp
  256. 2
      kioslave/media/libmediacommon/notifieropenaction.cpp
  257. 4
      kioslave/media/libmediacommon/notifierserviceaction.cpp
  258. 10
      kioslave/media/libmediacommon/notifiersettings.cpp
  259. 2
      kioslave/media/mediaimpl.cpp
  260. 80
      kioslave/media/mediamanager/fstabbackend.cpp
  261. 40
      kioslave/media/mediamanager/halbackend.cpp
  262. 16
      kioslave/media/mediamanager/linuxcdpolling.cpp
  263. 22
      kioslave/media/mediamanager/medialist.cpp
  264. 16
      kioslave/media/mediamanager/removablebackend.cpp
  265. 4
      kioslave/media/medianotifier/medianotifier.cpp
  266. 4
      kioslave/media/mounthelper/kio_media_mounthelper.cpp
  267. 50
      kioslave/media/propsdlgplugin/propertiespage.cpp
  268. 22
      kioslave/nfs/kio_nfs.cpp
  269. 30
      kioslave/nntp/nntp.cpp
  270. 22
      kioslave/pop3/pop3.cc
  271. 2
      kioslave/remote/kdedmodule/remotedirnotify.cpp
  272. 4
      kioslave/remote/kio_remote.cpp
  273. 2
      kioslave/remote/remoteimpl.cpp
  274. 50
      kioslave/sftp/ksshprocess.cpp
  275. 6
      kioslave/sftp/process.cpp
  276. 2
      kioslave/smb/kio_smb_auth.cpp
  277. 12
      kioslave/smb/kio_smb_browse.cpp
  278. 2
      kioslave/smb/kio_smb_mount.cpp
  279. 2
      kioslave/smtp/capabilities.h
  280. 8
      kioslave/smtp/interactivesmtpserver.h
  281. 4
      kioslave/smtp/request.cc
  282. 2
      kioslave/smtp/smtp.cc
  283. 2
      kioslave/smtp/test_commands.cc
  284. 2
      kioslave/system/kdedmodule/systemdirnotify.cpp
  285. 4
      kioslave/system/systemimpl.cpp
  286. 2
      kioslave/tar/tar.cc
  287. 2
      kioslave/thumbnail/textcreator.cpp
  288. 2
      kioslave/thumbnail/thumbnail.cpp
  289. 2
      kioslave/trash/ktrash.cpp
  290. 14
      kioslave/trash/testtrash.cpp
  291. 8
      kioslave/trash/trashimpl.cpp
  292. 4
      klipper/popupproxy.cpp
  293. 10
      klipper/urlgrabber.cpp
  294. 6
      kmenuedit/menufile.cpp
  295. 10
      kmenuedit/menuinfo.cpp
  296. 26
      kmenuedit/treeview.cpp
  297. 2
      knetattach/knetattach.ui.h
  298. 2
      konqueror/KonquerorIface.cc
  299. 4
      konqueror/about/konq_aboutpage.cc
  300. 2
      konqueror/client/kfmclient.cc
  301. 2
      konqueror/iconview/konq_iconview.cc
  302. 2
      konqueror/keditbookmarks/kbookmarkmerger.cpp
  303. 10
      konqueror/keditbookmarks/listview.cpp
  304. 10
      konqueror/keditbookmarks/testlink.cpp
  305. 2
      konqueror/konq_actions.cc
  306. 10
      konqueror/konq_combo.cc
  307. 2
      konqueror/konq_factory.cc
  308. 2
      konqueror/konq_guiclients.cc
  309. 2
      konqueror/konq_main.cc
  310. 82
      konqueror/konq_mainwindow.cc
  311. 8
      konqueror/konq_profiledlg.cc
  312. 14
      konqueror/konq_view.cc
  313. 8
      konqueror/konq_viewmgr.cc
  314. 4
      konqueror/listview/konq_infolistviewwidget.cc
  315. 4
      konqueror/listview/konq_listview.cc
  316. 14
      konqueror/listview/konq_listviewwidget.cc
  317. 2
      konqueror/listview/konq_textviewwidget.cc
  318. 2
      konqueror/listview/konq_treeviewwidget.cc
  319. 2
      konqueror/remoteencodingplugin/kremoteencodingplugin.cpp
  320. 2
      konqueror/sidebar/konqsidebar.cpp
  321. 26
      konqueror/sidebar/sidebar_widget.cpp
  322. 2
      konqueror/sidebar/trees/bookmark_module/bookmark_module.cpp
  323. 2
      konqueror/sidebar/trees/dirtree_module/dirtree_item.cpp
  324. 2
      konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp
  325. 6
      konqueror/sidebar/trees/history_module/history_module.cpp
  326. 10
      konqueror/sidebar/trees/konq_sidebartree.cpp
  327. 2
      konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp
  328. 2
      konqueror/sidebar/trees/konqsidebar_tree.cpp
  329. 2
      konsole/konsole/TEHistory.cpp
  330. 8
      konsole/konsole/TEWidget.cpp
  331. 8
      konsole/konsole/TEmulation.cpp
  332. 10
      konsole/konsole/keytrans.cpp
  333. 82
      konsole/konsole/konsole.cpp
  334. 4
      konsole/konsole/konsole_part.cpp
  335. 2
      konsole/konsole/konsolebookmarkmenu.cpp
  336. 4
      konsole/konsole/main.cpp
  337. 4
      konsole/konsole/schema.cpp
  338. 6
      konsole/konsole/session.cpp
  339. 8
      kpager/desktop.cpp
  340. 8
      kpersonalizer/kcountrypage.cpp
  341. 22
      kpersonalizer/kfindlanguage.cpp
  342. 30
      kpersonalizer/ksysinfo.cpp
  343. 4
      kscreensaver/random.cpp
  344. 10
      ksmserver/legacy.cpp
  345. 12
      ksmserver/server.cpp
  346. 14
      ksmserver/shutdowndlg.cpp
  347. 4
      ksmserver/startup.cpp
  348. 12
      ksplashml/kcmksplash/installer.cpp
  349. 2
      ksplashml/themeengine/objkstheme.cpp
  350. 2
      ksplashml/themeengine/themeengine.cpp
  351. 6
      kstart/kstart.cpp
  352. 2
      ksysguard/gui/SensorDisplayLib/LogFile.cc
  353. 8
      ksysguard/gui/SensorDisplayLib/ProcessList.cc
  354. 2
      ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
  355. 2
      ksysguard/gui/WorkSheet.cc
  356. 18
      ksysguard/gui/Workspace.cc
  357. 2
      ksysguard/gui/ksgrd/SensorAgent.cc
  358. 16
      ksysguard/gui/ksgrd/SensorManager.cc
  359. 8
      ksysguard/gui/ksysguard.cc
  360. 6
      kwin/activation.cpp
  361. 2
      kwin/bridge.cpp
  362. 10
      kwin/client.cpp
  363. 2
      kwin/clients/b2/b2client.cpp
  364. 4
      kwin/clients/keramik/embedtool.cpp
  365. 4
      kwin/clients/keramik/keramik.cpp
  366. 2
      kwin/clients/kwmtheme/kwmthemeclient.cpp
  367. 22
      kwin/clients/plastik/plastikclient.cpp
  368. 2
      kwin/clients/quartz/quartz.cpp
  369. 4
      kwin/events.cpp
  370. 12
      kwin/geometry.cpp
  371. 30
      kwin/group.cpp
  372. 42
      kwin/kcmkwin/kwindecoration/buttons.cpp
  373. 2
      kwin/kcmkwin/kwinoptions/windows.cpp
  374. 2
      kwin/kcmkwin/kwinrules/main.cpp
  375. 18
      kwin/layers.cpp
  376. 2
      kwin/lib/kdecoration_plugins_p.cpp
  377. 2
      kwin/lib/kdecorationfactory.cpp
  378. 2
      kwin/main.cpp
  379. 2
      kwin/manage.cpp
  380. 2
      kwin/options.cpp
  381. 2
      kwin/rules.cpp
  382. 4
      kwin/rules.h
  383. 4
      kwin/sm.cpp
  384. 18
      kwin/tabbox.cpp
  385. 4
      kwin/useractions.cpp
  386. 40
      kwin/workspace.cpp
  387. 6
      kxkb/extension.cpp
  388. 16
      kxkb/kcmlayout.cpp
  389. 4
      kxkb/kxkb.cpp
  390. 18
      kxkb/kxkbconfig.cpp
  391. 2
      kxkb/pixmap.cpp
  392. 12
      kxkb/rules.cpp
  393. 38
      kxkb/x11helper.cpp
  394. 4
      libkonq/favicons/favicons.cpp
  395. 2
      libkonq/kivdirectoryoverlay.cc
  396. 6
      libkonq/knewmenu.cc
  397. 6
      libkonq/konq_historymgr.cc
  398. 20
      libkonq/konq_iconviewwidget.cc
  399. 4
      libkonq/konq_pixmapprovider.cc
  400. 30
      libkonq/konq_popupmenu.cc
  401. 18
      libkonq/konq_propsview.cc
  402. 2
      libkonq/konq_propsview.h
  403. 4
      libkonq/konq_settings.cc
  404. 2
      libkonq/konq_sound.cc
  405. 8
      libkonq/konq_undo.cc
  406. 2
      nsplugins/nspluginloader.cpp
  407. 4
      nsplugins/plugin_part.cpp
  408. 16
      nsplugins/pluginscan.cpp
  409. 2
      nsplugins/viewer/nsplugin.cpp
  410. 6
      nsplugins/viewer/qxteventloop.cpp

10
drkonqi/backtrace.cpp

@ -137,7 +137,7 @@ bool BackTrace::usefulBacktrace()
{
// remove crap
if( !m_krashconf->removeFromBacktraceRegExp().isEmpty())
m_strBt.tqreplace(TQRegExp( m_krashconf->removeFromBacktraceRegExp()), TQString());
m_strBt.replace(TQRegExp( m_krashconf->removeFromBacktraceRegExp()), TQString());
if( m_krashconf->disableChecks())
return true;
@ -146,16 +146,16 @@ bool BackTrace::usefulBacktrace()
// how many " ?? " in the bt ?
int unknown = 0;
if( !m_krashconf->invalidStackFrameRegExp().isEmpty())
unknown = strBt.tqcontains( TQRegExp( m_krashconf->invalidStackFrameRegExp()));
unknown = strBt.contains( TQRegExp( m_krashconf->invalidStackFrameRegExp()));
// how many stack frames in the bt ?
int frames = 0;
if( !m_krashconf->frameRegExp().isEmpty())
frames = strBt.tqcontains( TQRegExp( m_krashconf->frameRegExp()));
frames = strBt.contains( TQRegExp( m_krashconf->frameRegExp()));
else
frames = strBt.tqcontains('\n');
frames = strBt.contains('\n');
bool tooShort = false;
if( !m_krashconf->neededInValidBacktraceRegExp().isEmpty())
tooShort = ( strBt.tqfind( TQRegExp( m_krashconf->neededInValidBacktraceRegExp())) == -1 );
tooShort = ( strBt.find( TQRegExp( m_krashconf->neededInValidBacktraceRegExp())) == -1 );
return !m_strBt.isNull() && !tooShort && (unknown < frames);
}

4
drkonqi/debugger.cpp

@ -110,8 +110,8 @@ void KrashDebugger :: slotSave()
else
{
TQString defname = m_krashconf->execName() + TQString::tqfromLatin1( ".kcrash" );
if( defname.tqcontains( '/' ))
defname = defname.mid( defname.tqfindRev( '/' ) + 1 );
if( defname.contains( '/' ))
defname = defname.mid( defname.findRev( '/' ) + 1 );
TQString filename = KFileDialog::getSaveFileName(defname, TQString::null, this, i18n("Select Filename"));
if (!filename.isEmpty())
{

10
kappfinder/common.cpp

@ -61,13 +61,13 @@ bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ,
// find out the name of the file to store
destName = templ;
int pos = templ.tqfind( "kappfinder/apps/" );
int pos = templ.find( "kappfinder/apps/" );
if ( pos > 0 )
destName = destName.mid( pos + strlen( "kappfinder/apps/" ) );
// calculate real dir and filename
destName = destDir + destName;
pos = destName.tqfindRev( '/' );
pos = destName.findRev( '/' );
if ( pos > 0 ) {
destDir = destName.left( pos );
destName = destName.mid( pos + 1 );
@ -77,7 +77,7 @@ bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ,
TQString exec = desktop.readPathEntry( "TryExec" );
if ( exec.isEmpty() )
exec = desktop.readPathEntry( "Exec" );
pos = exec.tqfind( ' ' );
pos = exec.find( ' ' );
if ( pos > 0 )
exec = exec.left( pos );
@ -117,7 +117,7 @@ void createDesktopFiles( TQPtrList<AppLnkCache> &appCache, int &added )
destDir += "/";
TQDir d;
int pos = -1;
while ( ( pos = destDir.tqfind( '/', pos + 1 ) ) >= 0 ) {
while ( ( pos = destDir.find( '/', pos + 1 ) ) >= 0 ) {
TQString path = destDir.left( pos + 1 );
d = path;
if ( !d.exists() )
@ -144,7 +144,7 @@ void decorateDirs( TQString destDir )
for ( it = dirs.begin(); it != dirs.end(); ++it ) {
// find out the name of the file to store
TQString destName = *it;
int pos = destName.tqfind( "kappfinder/apps/" );
int pos = destName.find( "kappfinder/apps/" );
if ( pos > 0 )
destName = destName.mid( pos + strlen( "kappfinder/apps/" ) );

10
kappfinder/toplevel.cpp

@ -100,7 +100,7 @@ TopLevel::TopLevel( const TQString &destDir, TQWidget *parent, const char *name
adjustSize();
mDestDir = destDir;
mDestDir = mDestDir.tqreplace( TQRegExp( "^~/" ), TQDir::homeDirPath() + "/" );
mDestDir = mDestDir.replace( TQRegExp( "^~/" ), TQDir::homeDirPath() + "/" );
KStartupInfo::appStarted();
@ -183,9 +183,9 @@ void TopLevel::slotScan()
mProgress->setProgress( mProgress->progress() + 1 );
TQString desktopName = *it;
int i = desktopName.tqfindRev('/');
int i = desktopName.findRev('/');
desktopName = desktopName.mid(i+1);
i = desktopName.tqfindRev('.');
i = desktopName.findRev('.');
if (i != -1)
desktopName = desktopName.left(i);
@ -207,9 +207,9 @@ void TopLevel::slotScan()
// copy over the desktop file, if exists
if ( scanDesktopFile( mAppCache, *it, mDestDir ) ) {
TQString relPath = *it;
int pos = relPath.tqfind( "kappfinder/apps/" );
int pos = relPath.find( "kappfinder/apps/" );
relPath = relPath.mid( pos + strlen( "kappfinder/apps/" ) );
relPath = relPath.left( relPath.tqfindRev( '/' ) + 1 );
relPath = relPath.left( relPath.findRev( '/' ) + 1 );
TQStringList dirList = TQStringList::split( '/', relPath );
TQListViewItem *dirItem = 0;

2
kate/app/kateapp.cpp

@ -375,7 +375,7 @@ KateMainWindow *KateApp::activeMainWindow ()
if (m_mainWindows.isEmpty())
return 0;
int n = m_mainWindows.tqfindIndex ((KateMainWindow *)activeWindow());
int n = m_mainWindows.findIndex ((KateMainWindow *)activeWindow());
if (n < 0)
n=0;

4
kate/app/katedocmanager.cpp

@ -194,7 +194,7 @@ const KateDocumentInfo *KateDocManager::documentInfo (Kate::Document *doc)
int KateDocManager::findDocument (Kate::Document *doc)
{
return m_docList.tqfind (doc);
return m_docList.find (doc);
}
uint KateDocManager::documents ()
@ -306,7 +306,7 @@ bool KateDocManager::closeDocument(class Kate::Document *doc,bool closeURL)
KateApp::self()->mainWindow(i)->viewManager()->closeViews(documentNumber);
}
if ( closeURL && m_tempFiles.tqcontains( documentNumber ) )
if ( closeURL && m_tempFiles.contains( documentNumber ) )
{
TQFileInfo fi( m_tempFiles[ documentNumber ].first.path() );
if ( fi.lastModified() <= m_tempFiles[ documentNumber ].second /*||

10
kate/app/kateexternaltools.cpp

@ -127,7 +127,7 @@ bool KateExternalTool::checkExec()
bool KateExternalTool::valid( const TQString &mt ) const
{
return mimetypes.isEmpty() || mimetypes.tqcontains( mt );
return mimetypes.isEmpty() || mimetypes.contains( mt );
}
//END KateExternalTool
@ -330,8 +330,8 @@ void KateExternalToolsMenuAction::reload()
bool sepadded = false;
for (TQStringList::iterator itg = dtools.begin(); itg != dtools.end(); ++itg )
{
if ( ! tools.tqcontains( *itg ) &&
! removed.tqcontains( *itg ) )
if ( ! tools.contains( *itg ) &&
! removed.contains( *itg ) )
{
if ( ! sepadded )
{
@ -394,7 +394,7 @@ void KateExternalToolsMenuAction::slotDocumentChanged()
if ( action )
{
l = action->tool->mimetypes;
b = ( ! l.count() || l.tqcontains( mt ) );
b = ( ! l.count() || l.contains( mt ) );
action->setEnabled( b );
}
}
@ -745,7 +745,7 @@ void KateExternalToolsConfigWidget::slotNew()
// This is sticky, it does not change again, so that shortcuts sticks
// TODO check for dups
t->acname = "externaltool_" + TQString(t->name).tqreplace( TQRegExp("\\W+"), "" );
t->acname = "externaltool_" + TQString(t->name).replace( TQRegExp("\\W+"), "" );
new ToolItem ( lbTools, t->icon.isEmpty() ? blankIcon() : SmallIcon( t->icon ), t );

4
kate/app/katefileselector.cpp

@ -692,13 +692,13 @@ void KFSConfigPage::init()
KAction *ac;
TQListBox *lb;
for ( TQStringList::Iterator it=allActions.begin(); it != allActions.end(); ++it ) {
lb = l.tqcontains( *it ) ? acSel->selectedListBox() : acSel->availableListBox();
lb = l.contains( *it ) ? acSel->selectedListBox() : acSel->availableListBox();
if ( *it == "bookmarks" || *it == "sync_dir" )
ac = fileSelector->actionCollection()->action( (*it).latin1() );
else
ac = fileSelector->dirOperator()->actionCollection()->action( (*it).latin1() );
if ( ac )
new ActionLBItem( lb, SmallIcon( ac->icon() ), ac->text().tqreplace( re, "" ), *it );
new ActionLBItem( lb, SmallIcon( ac->icon() ), ac->text().replace( re, "" ), *it );
}
// sync

12
kate/app/kategrepdialog.cpp

@ -286,11 +286,11 @@ void GrepTool::itemSelected(const TQString& item)
TQString filename, linenumber;
TQString str = item;
if ( (pos = str.tqfind(':')) != -1)
if ( (pos = str.find(':')) != -1)
{
filename = str.left(pos);
str = str.mid(pos+1);
if ( (pos = str.tqfind(':')) != -1)
if ( (pos = str.find(':')) != -1)
{
filename = m_workingDir + TQDir::separator() + filename;
linenumber = str.left(pos);
@ -302,7 +302,7 @@ void GrepTool::itemSelected(const TQString& item)
void GrepTool::processOutput()
{
int pos;
while ( (pos = buf.tqfind('\n')) != -1)
while ( (pos = buf.find('\n')) != -1)
{
TQString item = buf.mid(2,pos-2);
if (!item.isEmpty())
@ -329,7 +329,7 @@ void GrepTool::slotSearch()
return;
}
if ( ! leTemplate->text().tqcontains("%s") )
if ( ! leTemplate->text().contains("%s") )
{
leTemplate->setFocus();
return;
@ -347,9 +347,9 @@ void GrepTool::slotSearch()
TQString s = cmbPattern->currentText();
if ( ! cbRegex->isChecked() )
s.tqreplace( TQRegExp( "([^\\w'()<>])" ), "\\\\1" );
s.replace( TQRegExp( "([^\\w'()<>])" ), "\\\\1" );
TQString pattern = leTemplate->text();
pattern.tqreplace( "%s", s );
pattern.replace( "%s", s );
childproc = new KProcess();
childproc->setWorkingDirectory( m_workingDir );

6
kate/app/katemdi.cpp

@ -340,7 +340,7 @@ ToolView *Sidebar::addWidget (const TQPixmap &icon, const TQString &text, ToolVi
bool Sidebar::removeWidget (ToolView *widget)
{
if (!m_widgetToId.tqcontains(widget))
if (!m_widgetToId.contains(widget))
return false;
removeTab(m_widgetToId[widget]);
@ -370,7 +370,7 @@ bool Sidebar::removeWidget (ToolView *widget)
bool Sidebar::showWidget (ToolView *widget)
{
if (!m_widgetToId.tqcontains(widget))
if (!m_widgetToId.contains(widget))
return false;
// hide other non-persistent views
@ -395,7 +395,7 @@ bool Sidebar::showWidget (ToolView *widget)
bool Sidebar::hideWidget (ToolView *widget)
{
if (!m_widgetToId.tqcontains(widget))
if (!m_widgetToId.contains(widget))
return false;
bool anyVis = false;

2
kate/app/kateviewmanager.cpp

@ -215,7 +215,7 @@ void KateViewManager::slotCloseTab()
if (m_viewSpaceContainerList.count() <= 1) return;
if (!m_currentContainer) return;
int pos = m_viewSpaceContainerList.tqfind (m_currentContainer);
int pos = m_viewSpaceContainerList.find (m_currentContainer);
if (pos == -1)
return;

14
kate/app/kateviewspacecontainer.cpp

@ -275,7 +275,7 @@ void KateViewSpaceContainer::activateView ( Kate::View *view )
}
setActiveView (view);
m_viewList.tqfindRef (view);
m_viewList.findRef (view);
mainWindow()->toolBar ()->tqsetUpdatesEnabled (false);
@ -337,7 +337,7 @@ void KateViewSpaceContainer::slotViewChanged()
void KateViewSpaceContainer::activateNextView()
{
uint i = m_viewSpaceList.tqfind (activeViewSpace())+1;
uint i = m_viewSpaceList.find (activeViewSpace())+1;
if (i >= m_viewSpaceList.count())
i=0;
@ -348,7 +348,7 @@ void KateViewSpaceContainer::activateNextView()
void KateViewSpaceContainer::activatePrevView()
{
int i = m_viewSpaceList.tqfind (activeViewSpace())-1;
int i = m_viewSpaceList.find (activeViewSpace())-1;
if (i < 0)
i=m_viewSpaceList.count()-1;
@ -521,7 +521,7 @@ void KateViewSpaceContainer::removeViewSpace (KateViewSpace *viewspace)
// Figure out where to put views that are still needed
KateViewSpace* next;
if (m_viewSpaceList.tqfind(viewspace) == 0)
if (m_viewSpaceList.find(viewspace) == 0)
next = m_viewSpaceList.next();
else
next = m_viewSpaceList.prev();
@ -684,12 +684,12 @@ void KateViewSpaceContainer::saveSplitterConfig( KateMDI::Splitter* s, int idx,
TQString n; // name for child list, see below
// For KateViewSpaces, ask them to save the file list.
if ( obj->isA("KateViewSpace") ) {
n = TQString(viewConfGrp+"-ViewSpace %1").arg( m_viewSpaceList.tqfind((KateViewSpace*)obj) );
((KateViewSpace*)obj)->saveConfig ( config, m_viewSpaceList.tqfind((KateViewSpace*)obj), viewConfGrp);
n = TQString(viewConfGrp+"-ViewSpace %1").arg( m_viewSpaceList.find((KateViewSpace*)obj) );
((KateViewSpace*)obj)->saveConfig ( config, m_viewSpaceList.find((KateViewSpace*)obj), viewConfGrp);
// save active viewspace
if ( ((KateViewSpace*)obj)->isActiveSpace() ) {
config->setGroup(viewConfGrp);
config->writeEntry("Active Viewspace", m_viewSpaceList.tqfind((KateViewSpace*)obj) );
config->writeEntry("Active Viewspace", m_viewSpaceList.find((KateViewSpace*)obj) );
}
}
// For KateSplitters, recurse

4
kate/app/kwritemain.cpp

@ -458,7 +458,7 @@ void KWrite::readProperties(KConfig *config)
void KWrite::saveProperties(KConfig *config)
{
writeConfig(config);
config->writeEntry("DocumentNumber",docList.tqfind(m_view->document()) + 1);
config->writeEntry("DocumentNumber",docList.find(m_view->document()) + 1);
if (KTextEditor::sessionConfigInterface(m_view))
KTextEditor::sessionConfigInterface(m_view)->writeSessionConfig(config);
@ -485,7 +485,7 @@ void KWrite::saveGlobalProperties(KConfig *config) //save documents
TQString buf = TQString("Window %1").arg(z);
config->setGroup(buf);
config->writeEntry("DocumentNumber",docList.tqfind(winList.tqat(z-1)->view()->document()) + 1);
config->writeEntry("DocumentNumber",docList.find(winList.tqat(z-1)->view()->document()) + 1);
}
}

4
kcminit/main.cpp

@ -113,10 +113,10 @@ void KCMInit::runModules( int phase )
TQString libName = TQString("kcm_%1").arg(library);
// try to load the library
if (! alreadyInitialized.tqcontains( libName.ascii() )) {
if (! alreadyInitialized.contains( libName.ascii() )) {
if (!runModule(libName, service)) {
libName = TQString("libkcm_%1").arg(library);
if (! alreadyInitialized.tqcontains( libName.ascii() )) {
if (! alreadyInitialized.contains( libName.ascii() )) {
runModule(libName, service);
alreadyInitialized.append( libName.ascii() );
}

4
kcontrol/background/bgadvanced.cpp

@ -240,7 +240,7 @@ void BGAdvancedDialog::updateUI()
void BGAdvancedDialog::removeProgram(const TQString &name)
{
if (m_programItems.tqfind(name))
if (m_programItems.find(name))
{
delete m_programItems[name];
m_programItems.remove(name);
@ -265,7 +265,7 @@ void BGAdvancedDialog::addProgram(const TQString &name)
void BGAdvancedDialog::selectProgram(const TQString &name)
{
if (m_programItems.tqfind(name))
if (m_programItems.find(name))
{
TQListViewItem *item = m_programItems[name];
dlg->m_listPrograms->ensureItemVisible(item);

22
kcontrol/background/bgdialog.cpp

@ -510,7 +510,7 @@ void BGDialog::loadWallpaperFilesList() {
KSimpleConfig fileConfig(*it);
fileConfig.setGroup("Wallpaper");
int slash = (*it).tqfindRev('/') + 1;
int slash = (*it).findRev('/') + 1;
TQString directory = (*it).left(slash);
TQString imageCaption = fileConfig.readEntry("Name");
@ -524,14 +524,14 @@ void BGDialog::loadWallpaperFilesList() {
if (imageCaption.isEmpty())
{
imageCaption = fileName;
imageCaption.tqreplace('_', ' ');
imageCaption.replace('_', ' ');
imageCaption = KStringHandler::capwords(imageCaption);
}
// avoid name collisions
TQString rs = imageCaption;
TQString lrs = rs.lower();
for (int n = 1; papers.tqfind(lrs) != papers.end(); ++n)
for (int n = 1; papers.find(lrs) != papers.end(); ++n)
{
rs = imageCaption + " (" + TQString::number(n) + ')';
lrs = rs.lower();
@ -562,8 +562,8 @@ void BGDialog::loadWallpaperFilesList() {
if (imageCaption.isEmpty())
{
int slash = (*it).tqfindRev('/') + 1;
int endDot = (*it).tqfindRev('.');
int slash = (*it).findRev('/') + 1;
int endDot = (*it).findRev('.');
// strip the extension if it exists
if (endDot != -1 && endDot > slash)
@ -571,14 +571,14 @@ void BGDialog::loadWallpaperFilesList() {
else
imageCaption = (*it).mid(slash);
imageCaption.tqreplace('_', ' ');
imageCaption.replace('_', ' ');
imageCaption = KStringHandler::capwords(imageCaption);
}
// avoid name collisions
TQString rs = imageCaption;
TQString lrs = rs.lower();
for (int n = 1; papers.tqfind(lrs) != papers.end(); ++n)
for (int n = 1; papers.find(lrs) != papers.end(); ++n)
{
rs = imageCaption + " (" + TQString::number(n) + ')';
lrs = rs.lower();
@ -606,12 +606,12 @@ void BGDialog::setWallpaper(const TQString &s)
KComboBox *comboWallpaper = m_urlWallpaperBox;
comboWallpaper->blockSignals(true);
if (m_wallpaper.tqfind(s) == m_wallpaper.end())
if (m_wallpaper.find(s) == m_wallpaper.end())
{
int i = comboWallpaper->count();
TQString imageCaption;
int slash = s.tqfindRev('/') + 1;
int endDot = s.tqfindRev('.');
int slash = s.findRev('/') + 1;
int endDot = s.findRev('.');
// strip the extension if it exists
if (endDot != -1 && endDot > slash)
@ -750,7 +750,7 @@ void BGDialog::updateUI()
case KBackgroundSettings::Pattern:
{
int i = m_patterns.tqfindIndex(r->KBackgroundPattern::name());
int i = m_patterns.findIndex(r->KBackgroundPattern::name());
if (i >= 0)
m_comboPattern->setCurrentItem(NR_PREDEF_PATTERNS+i);
else

14
kcontrol/background/bgrender.cpp

@ -124,7 +124,7 @@ TQString KBackgroundRenderer::buildCommand()
if (cmd.isEmpty())
return TQString();
while ((pos = cmd.tqfind('%', pos)) != -1) {
while ((pos = cmd.find('%', pos)) != -1) {
if (pos == (int) (cmd.length() - 1))
break;
@ -132,24 +132,24 @@ TQString KBackgroundRenderer::buildCommand()
switch (cmd.tqat(pos+1).latin1()) {
case 'f':
createTempFile();
cmd.tqreplace(pos, 2, KShellProcess::quote(m_Tempfile->name()));
cmd.replace(pos, 2, KShellProcess::quote(m_Tempfile->name()));
pos += m_Tempfile->name().length() - 2;
break;
case 'x':
num.setNum(m_Size.width());
cmd.tqreplace(pos, 2, num);
cmd.replace(pos, 2, num);
pos += num.length() - 2;
break;
case 'y':
num.setNum(m_Size.height());
cmd.tqreplace(pos, 2, num);
cmd.replace(pos, 2, num);
pos += num.length() - 2;
break;
case '%':
cmd.tqreplace(pos, 2, "%");
cmd.replace(pos, 2, "%");
pos--;
break;
default:
@ -584,7 +584,7 @@ void KBackgroundRenderer::fastWallpaperBlend()
m_Pixmap.convertFromImage( m_Wallpaper );
return;
}
else if( m_WallpaperRect.tqcontains( TQRect( TQPoint( 0, 0 ), m_Size ))
else if( m_WallpaperRect.contains( TQRect( TQPoint( 0, 0 ), m_Size ))
&& !m_Wallpaper.hasAlphaBuffer()) // wallpaper covers all and no blending
m_Pixmap = TQPixmap( m_Size );
else if (m_Background.size() == m_Size)
@ -1251,7 +1251,7 @@ void KVirtualBGRenderer::screenDone(int _desk, int _screen)
Q_UNUSED(_screen);
const KBackgroundRenderer * sender = dynamic_cast<const KBackgroundRenderer*>(this->sender());
int screen = m_renderer.tqfind(sender);
int screen = m_renderer.find(sender);
if (screen == -1)
//??
return;

22
kcontrol/background/bgsettings.cpp

@ -122,7 +122,7 @@ void KBackgroundPattern::readSettings()
m_Pattern = m_pConfig->readPathEntry("File");
m_Comment = m_pConfig->readEntry("Comment");
if (m_Comment.isEmpty())
m_Comment = m_File.mid(m_File.tqfindRev('/')+1);
m_Comment = m_File.mid(m_File.findRev('/')+1);
}
@ -190,10 +190,10 @@ TQStringList KBackgroundPattern::list()
TQStringList::Iterator it;
for (it=lst.begin(); it!=lst.end(); ++it) {
// Strip path and suffix
int pos = (*it).tqfindRev('/');
int pos = (*it).findRev('/');
if (pos != -1)
(*it) = (*it).mid(pos+1);
pos = (*it).tqfindRev('.');
pos = (*it).findRev('.');
if (pos != -1)
(*it) = (*it).left(pos);
}
@ -401,10 +401,10 @@ TQStringList KBackgroundProgram::list()
TQStringList::Iterator it;
for (it=lst.begin(); it!=lst.end(); ++it) {
// Strip path and suffix
int pos = (*it).tqfindRev('/');
int pos = (*it).findRev('/');
if (pos != -1)
(*it) = (*it).mid(pos+1);
pos = (*it).tqfindRev('.');
pos = (*it).findRev('.');
if (pos != -1)
(*it) = (*it).left(pos);
}
@ -665,7 +665,7 @@ void KBackgroundSettings::setWallpaperList(TQStringList list)
}
updateWallpaperFiles();
// Try to keep the current wallpaper (-1 to set position to one before it)
m_CurrentWallpaper = m_WallpaperFiles.tqfindIndex(m_CurrentWallpaperName) - 1;
m_CurrentWallpaper = m_WallpaperFiles.findIndex(m_CurrentWallpaperName) - 1;
changeWallpaper(m_CurrentWallpaper < 0);
}
@ -751,7 +751,7 @@ void KBackgroundSettings::readSettings(bool reparse)
m_BackgroundMode = defBackgroundMode;
s = m_pConfig->readEntry("BackgroundMode", "invalid");
if (m_BMMap.tqcontains(s)) {
if (m_BMMap.contains(s)) {
int mode = m_BMMap[s];
// consistency check
if ( ((mode != Pattern) && (mode != Program)) ||
@ -763,7 +763,7 @@ void KBackgroundSettings::readSettings(bool reparse)
m_BlendMode = defBlendMode;
s = m_pConfig->readEntry("BlendMode", "invalid");
if (m_BlMMap.tqcontains(s)) {
if (m_BlMMap.contains(s)) {
m_BlendMode = m_BlMMap[s];
}
@ -784,14 +784,14 @@ void KBackgroundSettings::readSettings(bool reparse)
m_MultiMode = defMultiMode;
s = m_pConfig->readEntry("MultiWallpaperMode");
if (m_MMMap.tqcontains(s)) {
if (m_MMMap.contains(s)) {
int mode = m_MMMap[s];
m_MultiMode = mode;
}
updateWallpaperFiles();
if( !m_CurrentWallpaperName.isEmpty())
m_CurrentWallpaper = m_WallpaperFiles.tqfindIndex(m_CurrentWallpaperName);
m_CurrentWallpaper = m_WallpaperFiles.findIndex(m_CurrentWallpaperName);
if(m_CurrentWallpaper < 0)
m_CurrentWallpaper = 0;
@ -799,7 +799,7 @@ void KBackgroundSettings::readSettings(bool reparse)
m_WallpaperMode = defWallpaperMode;
m_Wallpaper = m_pConfig->readPathEntry("Wallpaper");
s = m_pConfig->readEntry("WallpaperMode", "invalid");
if (m_WMMap.tqcontains(s)) {
if (m_WMMap.contains(s)) {
int mode = m_WMMap[s];
// consistency check.
if ((mode == NoWallpaper) || !m_Wallpaper.isEmpty() || (m_MultiMode == InOrder || m_MultiMode == Random))

8
kcontrol/clock/dtime.cpp

@ -272,7 +272,7 @@ void Dtime::save()
list.append(timeServerList->currentText());
for ( int i=0; i<timeServerList->count();i++ ) {
TQString text = timeServerList->text(i);
if( list.tqfind(text) == list.end())
if( list.find(text) == list.end())
list.append(text);
// Limit so errors can go away and not stored forever
if( list.count() == 10)
@ -284,9 +284,9 @@ void Dtime::save()
if(setDateTimeAuto->isChecked() && !ntpUtility.isEmpty()){
// NTP Time setting
TQString timeServer = timeServerList->currentText();
if( timeServer.tqfind( TQRegExp(".*\\(.*\\)$") ) != -1 ) {
timeServer.tqreplace( TQRegExp(".*\\("), "" );
timeServer.tqreplace( TQRegExp("\\).*"), "" );
if( timeServer.find( TQRegExp(".*\\(.*\\)$") ) != -1 ) {
timeServer.replace( TQRegExp(".*\\("), "" );
timeServer.replace( TQRegExp("\\).*"), "" );
// Would this be better?: s/^.*\(([^)]*)\).*$/\1/
}
KProcess proc;

2
kcontrol/clock/tzone.cpp

@ -113,7 +113,7 @@ void Tzone::save()
for (TQString line = is.readLine(); !line.isNull();
line = is.readLine())
{
if (line.tqfind("TZ=") == 0)
if (line.find("TZ=") == 0)
{
*ts << "TZ=" << selectedzone << endl;
found = true;

8
kcontrol/colors/colorscm.cpp

@ -444,7 +444,7 @@ void KColorScheme::slotSave( )
if (!entry) return;
sCurrentScheme = entry->path;
KSimpleConfig *config = new KSimpleConfig(sCurrentScheme );
int i = sCurrentScheme.tqfindRev('/');
int i = sCurrentScheme.findRev('/');
if (i >= 0)
sCurrentScheme = sCurrentScheme.mid(i+1);
@ -800,7 +800,7 @@ void KColorScheme::readScheme( int index )
sCurrentScheme = entry->path;
config = new KSimpleConfig(sCurrentScheme, true);
config->setGroup("Color Scheme");
int i = sCurrentScheme.tqfindRev('/');
int i = sCurrentScheme.findRev('/');
if (i >= 0)
sCurrentScheme = sCurrentScheme.mid(i+1);
}
@ -905,7 +905,7 @@ int KColorScheme::findSchemeByName(const TQString &scheme)
return 1;
TQString search = scheme;
int i = search.tqfindRev('/');
int i = search.findRev('/');
if (i >= 0)
search = search.mid(i+1);
@ -972,7 +972,7 @@ void KColorScheme::insertEntry(const TQString &sFile, const TQString &sName)
{
KColorSchemeEntry *newEntry = new KColorSchemeEntry(sFile, sName, true);
mSchemeList->inSort(newEntry);
int newIndex = mSchemeList->tqfindRef(newEntry)+nSysSchemes;
int newIndex = mSchemeList->findRef(newEntry)+nSysSchemes;
sList->insertItem(sName, newIndex);
sList->setCurrentItem(newIndex);
}

6
kcontrol/colors/widgetcanvas.cpp

@ -64,7 +64,7 @@ void WidgetCanvas::paintEvent(TQPaintEvent *)
void WidgetCanvas::mousePressEvent( TQMouseEvent *me )
{
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.tqcontains( me->pos() ) ) {
if ( hotspots[i].rect.contains( me->pos() ) ) {
emit widgetSelected( hotspots[i].number );
return;
}
@ -73,7 +73,7 @@ void WidgetCanvas::mousePressEvent( TQMouseEvent *me )
void WidgetCanvas::mouseMoveEvent( TQMouseEvent *me )
{
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.tqcontains( me->pos() ) ) {
if ( hotspots[i].rect.contains( me->pos() ) ) {
if ( i != currentHotspot ) {
TQString tip = tips[hotspots[i].number];
TQToolTip::remove( this );
@ -91,7 +91,7 @@ void WidgetCanvas::dropEvent( TQDropEvent *e)
TQColor c;
if (KColorDrag::decode( e, c)) {
for ( int i = 0; i < MAX_HOTSPOTS; i++ )
if ( hotspots[i].rect.tqcontains( e->pos() ) ) {
if ( hotspots[i].rect.contains( e->pos() ) ) {
emit colorDropped( hotspots[i].number, c);
return;
}

20
kcontrol/crypto/crypto.cpp

@ -128,7 +128,7 @@ OtherCertItem::OtherCertItem( TQListView *view, const TQString& sub, const TQStr
m_module = module;
KSSLX509Map cert(sub);
setText(0, cert.getValue("O"));
setText(1, cert.getValue("CN").tqreplace("\n", ", "));
setText(1, cert.getValue("CN").replace("\n", ", "));
if (_exp.date().year() > 3000 || _exp.date().year() < 1900)
_exp.setDate(TQDate(3000,1,1));
@ -151,7 +151,7 @@ YourCertItem::YourCertItem( TQListView *view, TQString pkcs, TQString pass, TQSt
{
m_module = module;
KSSLX509Map cert(name);
TQString tmp = cert.getValue("CN").tqreplace("\n", ", ");
TQString tmp = cert.getValue("CN").replace("\n", ", ");
setText(0, tmp);
setText(1, cert.getValue("Email"));
_pkcs = pkcs;
@ -180,10 +180,10 @@ KSSLX509Map mcert(name);
TQString tmp;
setText(0, mcert.getValue("O"));
tmp = mcert.getValue("OU");
tmp.tqreplace("\n", ", ");
tmp.replace("\n", ", ");
setText(1, tmp);
tmp = mcert.getValue("CN");
tmp.tqreplace("\n", ", ");
tmp.replace("\n", ", ");
setText(2, tmp);
_name = name;
_cert = cert;
@ -1921,7 +1921,7 @@ void KCryptoConfig::slotCAImport() {
if (certStore) { KOSSL::self()->X509_STORE_free(certStore);
certStore = NULL; }
if (certtext.tqcontains("-----BEGIN CERTIFICATE-----")) {
if (certtext.contains("-----BEGIN CERTIFICATE-----")) {
qf.reset();
certtext = TQString();
while (!qf.atEnd()) {
@ -1929,10 +1929,10 @@ void KCryptoConfig::slotCAImport() {
qf.readLine(xx, qf.size());
certtext += xx;
}
certtext = certtext.tqreplace("-----BEGIN CERTIFICATE-----", TQString());
certtext = certtext.tqreplace("-----END CERTIFICATE-----", TQString());
certtext = certtext.replace("-----BEGIN CERTIFICATE-----", TQString());
certtext = certtext.replace("-----END CERTIFICATE-----", TQString());
certtext = certtext.stripWhiteSpace();
certtext = certtext.tqreplace("\n", TQString());
certtext = certtext.replace("\n", TQString());
} else {
// Must [could?] be DER
qf.close();
@ -2350,7 +2350,7 @@ SSL_CONST SSL_METHOD *meth;
break;
// Leak of sc*?
TQString scn(sc->name);
if (scn.tqcontains("ADH-") || scn.tqcontains("NULL-") || scn.tqcontains("DES-CBC3-SHA") || scn.tqcontains("FZA-")) {
if (scn.contains("ADH-") || scn.contains("NULL-") || scn.contains("DES-CBC3-SHA") || scn.contains("FZA-")) {
continue;
}
k = SSL_CIPHER_get_bits(sc, &j);
@ -2378,7 +2378,7 @@ SSL_CONST SSL_METHOD *meth;
break;
// Leak of sc*?
TQString scn(sc->name);
if (scn.tqcontains("ADH-") || scn.tqcontains("NULL-") || scn.tqcontains("DES-CBC3-SHA") || scn.tqcontains("FZA-")) {
if (scn.contains("ADH-") || scn.contains("NULL-") || scn.contains("DES-CBC3-SHA") || scn.contains("FZA-")) {
continue;
}
k = SSL_CIPHER_get_bits(sc, &j);

6
kcontrol/css/template.cpp

@ -23,16 +23,16 @@ bool CSSTemplate::expand(TQString destname, const TQMap<TQString,TQString> &dict
{
line = is.readLine();
int start = line.tqfind('$');
int start = line.find('$');
if (start >= 0)
{
int end = line.tqfind('$', start+1);
int end = line.find('$', start+1);
if (end >= 0)
{
TQString expr = line.mid(start+1, end-start-1);
TQString res = dict[expr];
line.tqreplace(start, end-start+1, res);
line.replace(start, end-start+1, res);
}
}
os << line << endl;

2
kcontrol/display/display.cpp

@ -85,7 +85,7 @@ void KCMDisplay::save()
void KCMDisplay::moduleChanged( bool isChanged )
{
TQMap<KCModule*, bool>::Iterator currentModule = m_modules.tqfind(static_cast<KCModule*>(TQT_TQWIDGET(const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender())))));