summaryrefslogtreecommitdiffstats
path: root/parts/replace/replaceview.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/replaceview.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/replaceview.cpp')
-rw-r--r--parts/replace/replaceview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp
index 6730971a..5f5eee77 100644
--- a/parts/replace/replaceview.cpp
+++ b/parts/replace/replaceview.cpp
@@ -27,7 +27,7 @@ ReplaceItem * ReplaceView::firstChild() const
}
-ReplaceView::ReplaceView( TQWidget * parent ) : KListView( parent ), _latestfile( 0 )
+ReplaceView::ReplaceView( TQWidget * tqparent ) : KListView( tqparent ), _latestfile( 0 )
{
setSorting( -1 );
addColumn( "" );
@@ -36,7 +36,7 @@ ReplaceView::ReplaceView( TQWidget * parent ) : KListView( parent ), _latestfile
TQPalette pal = palette();
TQColorGroup cg = pal.active();
- cg.setColor( TQColorGroup::Highlight, Qt::lightGray );
+ cg.setColor( TQColorGroup::Highlight, TQt::lightGray );
pal.setActive( cg );
setPalette( pal );
@@ -60,7 +60,7 @@ void ReplaceView::makeReplacementsForFile( TQTextStream & istream, TQTextStream
line++;
}
// this is the hit
- ostream << istream.readLine().replace( _regexp, _replacement ) << "\n";
+ ostream << istream.readLine().tqreplace( _regexp, _replacement ) << "\n";
line++;
}
@@ -84,9 +84,9 @@ void ReplaceView::showReplacementsForFile( TQTextStream & stream, TQString const
{
TQString s = stream.readLine();
- if ( s.contains( _regexp ) > 0 )
+ if ( s.tqcontains( _regexp ) > 0 )
{
- s.replace( _regexp, _replacement );
+ s.tqreplace( _regexp, _replacement );
if ( firstline )
{
@@ -119,7 +119,7 @@ void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& po
else if ( btn == Qt::LeftButton )
{
// map pos to item/column and call ReplacetItem::activate(pos)
- item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );
+ item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, tqitemRect(item).top() ) );
}
}
}