summaryrefslogtreecommitdiffstats
path: root/parts/replace/replace_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace/replace_widget.cpp')
-rw-r--r--parts/replace/replace_widget.cpp24
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 );
}