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 | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /parts/replace/replace_widget.cpp | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/replace/replace_widget.cpp')
-rw-r--r-- | parts/replace/replace_widget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/replace/replace_widget.cpp b/parts/replace/replace_widget.cpp index 957f845a..1136e08a 100644 --- a/parts/replace/replace_widget.cpp +++ b/parts/replace/replace_widget.cpp @@ -69,21 +69,21 @@ ReplaceWidget::ReplaceWidget(ReplacePart *part) TQHBoxLayout * buttontqlayout = new TQHBoxLayout( tqlayout ); _cancel = new KPushButton( KStdGuiItem::cancel(), this ); - _tqreplace = new KPushButton( KGuiItem(i18n("Replace"),"filetqfind"), this ); + _replace = new KPushButton( KGuiItem(i18n("Replace"),"filefind"), this ); _cancel->setEnabled( false ); - _tqreplace->setEnabled( false ); + _replace->setEnabled( false ); - buttontqlayout->addWidget( _tqreplace ); + buttontqlayout->addWidget( _replace ); buttontqlayout->addWidget( _cancel ); _listview = new ReplaceView( this ); tqlayout->addWidget( _listview ); // setup signals - connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( tqfind() ) ); + connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( find() ) ); - connect( _tqreplace, TQT_SIGNAL( clicked() ), TQT_SLOT( tqreplace() ) ); + connect( _replace, TQT_SIGNAL( clicked() ), TQT_SLOT( replace() ) ); connect( _cancel, TQT_SIGNAL( clicked() ), TQT_SLOT( clear() ) ); connect( _listview, TQT_SIGNAL( editDocument( const TQString &, int ) ), TQT_SLOT( editDocument( const TQString &, int ) ) ); @@ -142,7 +142,7 @@ void ReplaceWidget::showDialog() } -void ReplaceWidget::tqfind() +void ReplaceWidget::find() { _listview->clear(); m_part->mainWindow()->raiseView( this ); @@ -153,7 +153,7 @@ void ReplaceWidget::tqfind() if ( showReplacements() ) { _cancel->setEnabled( true ); - _tqreplace->setEnabled( true ); + _replace->setEnabled( true ); } else { @@ -162,7 +162,7 @@ void ReplaceWidget::tqfind() } } -void ReplaceWidget::tqreplace() +void ReplaceWidget::replace() { makeReplacements(); clear(); @@ -174,7 +174,7 @@ void ReplaceWidget::clear() _listview->clear(); _cancel->setEnabled( false ); - _tqreplace->setEnabled( false ); + _replace->setEnabled( false ); m_part->mainWindow()->setViewAvailable( this, false ); } @@ -215,7 +215,7 @@ bool ReplaceWidget::showReplacements() break; } - if ( openfiles.tqcontains( *it ) ) + if ( openfiles.contains( *it ) ) { if ( KTextEditor::EditInterface * ei = getEditInterfaceForFile( *it ) ) { @@ -290,7 +290,7 @@ bool ReplaceWidget::makeReplacements() { TQString currentfile = fileitem->file(); - if ( openfiles.tqcontains( currentfile ) ) + if ( openfiles.contains( currentfile ) ) { if ( KTextEditor::EditInterface * ei = getEditInterfaceForFile( currentfile ) ) { @@ -437,7 +437,7 @@ TQStringList ReplaceWidget::openProjectFiles() if ( KTextEditor::Editor * ed = dynamic_cast<KTextEditor::Editor *>( part ) ) { TQString editorpath = ed->url().path(); - if ( projectfiles.tqcontains( editorpath ) ) + if ( projectfiles.contains( editorpath ) ) { openfiles.append( editorpath ); } |