Browse Source

rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-systemsettings@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
tags/v3.5.13
tpearson 9 years ago
parent
commit
07915c3e55
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      systemsettings/kcmodulemenu.h
  2. +2
    -2
      systemsettings/kcmultiwidget.cpp
  3. +4
    -4
      systemsettings/mainwindow.cpp

+ 1
- 1
systemsettings/kcmodulemenu.h View File

@@ -64,7 +64,7 @@ class KCModuleMenuPrivate;
* X-KDE-BaseGroup=examplemenu
* \endcode
*
* example.menu should be installed in xdg/menus/ so that ksyscoco will tqfind
* example.menu should be installed in xdg/menus/ so that ksyscoco will find
* it. See the above url for example menus. After changing the menu you need
* to run "kbuildsycoca" to regenerate the cache as ksyscoco will cache the
* menu and is a file that doesn't change on users.


+ 2
- 2
systemsettings/kcmultiwidget.cpp View File

@@ -147,7 +147,7 @@ void KCMultiWidget::apply()
TQStringList * names = moduleParentComponents[ m ];
kdDebug() << k_funcinfo << *names << " saved and added to the list" << endl;
for( TQStringList::ConstIterator it = names->begin(); it != names->end(); ++it )
if( updatedModules.tqfind( *it ) == updatedModules.end() )
if( updatedModules.find( *it ) == updatedModules.end() )
updatedModules.append( *it );
}
}
@@ -278,7 +278,7 @@ void KCMultiWidget::addModule(const KCModuleInfo& moduleinfo,
return;
}
KCModuleProxy * module;
if( m_orphanModules.tqcontains( moduleinfo.service() ) )
if( m_orphanModules.contains( moduleinfo.service() ) )
{
// the KCModule already exists - it was removed from the dialog in
// removeAllModules


+ 4
- 4
systemsettings/mainwindow.cpp View File

@@ -231,8 +231,8 @@ void MainWindow::slotItemSelected( TQIconViewItem *item ){
if( !mItem )
return;

groupWidget = moduleItemToWidgetDict.tqfind(mItem);
scrollView = moduleItemToScrollerDict.tqfind(mItem);
groupWidget = moduleItemToWidgetDict.find(mItem);
scrollView = moduleItemToScrollerDict.find(mItem);

if(groupWidget==0) {
TQValueList<KCModuleInfo> list = mItem->modules;
@@ -299,7 +299,7 @@ void MainWindow::timerResize() {
void MainWindow::updateModuleHelp( KCModuleProxy *currentModule ) {
if ( currentModule->aboutData() ) {
aboutModuleAction->setText(i18n("Help menu->about <modulename>", "About %1").tqarg(
currentModule->moduleInfo().moduleName().tqreplace("&","&&")));
currentModule->moduleInfo().moduleName().replace("&","&&")));
aboutModuleAction->setIcon(currentModule->moduleInfo().icon());
aboutModuleAction->setEnabled(true);
}
@@ -332,7 +332,7 @@ void MainWindow::widgetChange() {

void MainWindow::slotTopPage() {
KRadioAction *clickedRadioAction = (KRadioAction *)sender();
selectedPage = pageActions.tqfind(clickedRadioAction);
selectedPage = pageActions.find(clickedRadioAction);

KRadioAction *currentRadioAction;
for ( currentRadioAction = pageActions.first(); currentRadioAction; currentRadioAction = pageActions.next()) {


Loading…
Cancel
Save