summaryrefslogtreecommitdiffstats
path: root/parts/replace/replace_widget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/replace/replace_widget.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/replace/replace_widget.cpp')
-rw-r--r--parts/replace/replace_widget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/parts/replace/replace_widget.cpp b/parts/replace/replace_widget.cpp
index c20c3bbc..957f845a 100644
--- a/parts/replace/replace_widget.cpp
+++ b/parts/replace/replace_widget.cpp
@@ -65,25 +65,25 @@ ReplaceWidget::ReplaceWidget(ReplacePart *part)
_terminateOperation( false )
{
// setup outputview
- TQVBoxLayout * layout = new TQVBoxLayout( this );
- TQHBoxLayout * buttonlayout = new TQHBoxLayout( layout );
+ TQVBoxLayout * tqlayout = new TQVBoxLayout( this );
+ TQHBoxLayout * buttontqlayout = new TQHBoxLayout( tqlayout );
_cancel = new KPushButton( KStdGuiItem::cancel(), this );
- _replace = new KPushButton( KGuiItem(i18n("Replace"),"filefind"), this );
+ _tqreplace = new KPushButton( KGuiItem(i18n("Replace"),"filetqfind"), this );
_cancel->setEnabled( false );
- _replace->setEnabled( false );
+ _tqreplace->setEnabled( false );
- buttonlayout->addWidget( _replace );
- buttonlayout->addWidget( _cancel );
+ buttontqlayout->addWidget( _tqreplace );
+ buttontqlayout->addWidget( _cancel );
_listview = new ReplaceView( this );
- layout->addWidget( _listview );
+ tqlayout->addWidget( _listview );
// setup signals
- connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( find() ) );
+ connect( m_dialog->find_button, TQT_SIGNAL( clicked() ), TQT_SLOT( tqfind() ) );
- connect( _replace, TQT_SIGNAL( clicked() ), TQT_SLOT( replace() ) );
+ connect( _tqreplace, TQT_SIGNAL( clicked() ), TQT_SLOT( tqreplace() ) );
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::find()
+void ReplaceWidget::tqfind()
{
_listview->clear();
m_part->mainWindow()->raiseView( this );
@@ -153,7 +153,7 @@ void ReplaceWidget::find()
if ( showReplacements() )
{
_cancel->setEnabled( true );
- _replace->setEnabled( true );
+ _tqreplace->setEnabled( true );
}
else
{
@@ -162,7 +162,7 @@ void ReplaceWidget::find()
}
}
-void ReplaceWidget::replace()
+void ReplaceWidget::tqreplace()
{
makeReplacements();
clear();
@@ -174,7 +174,7 @@ void ReplaceWidget::clear()
_listview->clear();
_cancel->setEnabled( false );
- _replace->setEnabled( false );
+ _tqreplace->setEnabled( false );
m_part->mainWindow()->setViewAvailable( this, false );
}
@@ -215,7 +215,7 @@ bool ReplaceWidget::showReplacements()
break;
}
- if ( openfiles.contains( *it ) )
+ if ( openfiles.tqcontains( *it ) )
{
if ( KTextEditor::EditInterface * ei = getEditInterfaceForFile( *it ) )
{
@@ -235,7 +235,7 @@ bool ReplaceWidget::showReplacements()
}
++it;
- kapp->processEvents( 100 );
+ kapp->tqprocessEvents( 100 );
}
m_part->core()->running( m_part, false );
@@ -290,7 +290,7 @@ bool ReplaceWidget::makeReplacements()
{
TQString currentfile = fileitem->file();
- if ( openfiles.contains( currentfile ) )
+ if ( openfiles.tqcontains( currentfile ) )
{
if ( KTextEditor::EditInterface * ei = getEditInterfaceForFile( currentfile ) )
{
@@ -330,7 +330,7 @@ bool ReplaceWidget::makeReplacements()
}
fileitem = fileitem->nextSibling();
- kapp->processEvents( 100 );
+ kapp->tqprocessEvents( 100 );
}
// Telling the project about the edited files
@@ -343,7 +343,7 @@ bool ReplaceWidget::makeReplacements()
m_part->core()->running( m_part, false );
- if ( calledUrl != TQString::null )
+ if ( calledUrl != TQString() )
{
m_part->partController()->editDocument( calledUrl, calledLine );
setCursorPos( m_part->partController()->activePart(), calledCol, calledLine );
@@ -437,7 +437,7 @@ TQStringList ReplaceWidget::openProjectFiles()
if ( KTextEditor::Editor * ed = dynamic_cast<KTextEditor::Editor *>( part ) )
{
TQString editorpath = ed->url().path();
- if ( projectfiles.contains( editorpath ) )
+ if ( projectfiles.tqcontains( editorpath ) )
{
openfiles.append( editorpath );
}