summaryrefslogtreecommitdiffstats
path: root/parts/replace/replaceview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace/replaceview.cpp')
-rw-r--r--parts/replace/replaceview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/parts/replace/replaceview.cpp b/parts/replace/replaceview.cpp
index 7a7505d7..6730971a 100644
--- a/parts/replace/replaceview.cpp
+++ b/parts/replace/replaceview.cpp
@@ -9,12 +9,12 @@
* *
***************************************************************************/
-#include <qheader.h>
-#include <qtextstream.h>
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qpalette.h>
+#include <tqheader.h>
+#include <tqtextstream.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqpalette.h>
#include "replaceitem.h"
#include "replaceview.h"
@@ -23,29 +23,29 @@
ReplaceItem * ReplaceView::firstChild() const
{
- return static_cast<ReplaceItem*>( QListView::firstChild() );
+ return static_cast<ReplaceItem*>( TQListView::firstChild() );
}
-ReplaceView::ReplaceView( QWidget * parent ) : KListView( parent ), _latestfile( 0 )
+ReplaceView::ReplaceView( TQWidget * parent ) : KListView( parent ), _latestfile( 0 )
{
setSorting( -1 );
addColumn( "" );
header()->hide();
setFullWidth(true);
- QPalette pal = palette();
- QColorGroup cg = pal.active();
- cg.setColor( QColorGroup::Highlight, Qt::lightGray );
+ TQPalette pal = palette();
+ TQColorGroup cg = pal.active();
+ cg.setColor( TQColorGroup::Highlight, Qt::lightGray );
pal.setActive( cg );
setPalette( pal );
- connect( this, SIGNAL( clicked( QListViewItem * ) ), SLOT( slotClicked( QListViewItem * ) ) );
- connect( this, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint &, int) ),
- SLOT( slotMousePressed(int, QListViewItem *, const QPoint &, int) ) );
+ connect( this, TQT_SIGNAL( clicked( TQListViewItem * ) ), TQT_SLOT( slotClicked( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( mouseButtonPressed( int, TQListViewItem *, const TQPoint &, int) ),
+ TQT_SLOT( slotMousePressed(int, TQListViewItem *, const TQPoint &, int) ) );
}
-void ReplaceView::makeReplacementsForFile( QTextStream & istream, QTextStream & ostream, ReplaceItem const * fileitem )
+void ReplaceView::makeReplacementsForFile( TQTextStream & istream, TQTextStream & ostream, ReplaceItem const * fileitem )
{
int line = 0;
@@ -73,7 +73,7 @@ void ReplaceView::makeReplacementsForFile( QTextStream & istream, QTextStream &
}
}
-void ReplaceView::showReplacementsForFile( QTextStream & stream, QString const & file )
+void ReplaceView::showReplacementsForFile( TQTextStream & stream, TQString const & file )
{
ReplaceItem * latestitem = 0;
@@ -82,7 +82,7 @@ void ReplaceView::showReplacementsForFile( QTextStream & stream, QString const &
while ( !stream.atEnd() )
{
- QString s = stream.readLine();
+ TQString s = stream.readLine();
if ( s.contains( _regexp ) > 0 )
{
@@ -100,13 +100,13 @@ void ReplaceView::showReplacementsForFile( QTextStream & stream, QString const &
}
}
-void ReplaceView::setReplacementData( QRegExp const & re, QString const & replacement )
+void ReplaceView::setReplacementData( TQRegExp const & re, TQString const & replacement )
{
_regexp = re;
_replacement = replacement;
}
-void ReplaceView::slotMousePressed(int btn, QListViewItem* i, const QPoint& pos, int col)
+void ReplaceView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& pos, int col)
{
kdDebug(0) << "ReplaceView::slotMousePressed()" << endl;
@@ -119,12 +119,12 @@ void ReplaceView::slotMousePressed(int btn, QListViewItem* i, const QPoint& pos,
else if ( btn == Qt::LeftButton )
{
// map pos to item/column and call ReplacetItem::activate(pos)
- item->activate( col, viewport()->mapFromGlobal( pos ) - QPoint( 0, itemRect(item).top() ) );
+ item->activate( col, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(item).top() ) );
}
}
}
-void ReplaceView::slotClicked( QListViewItem * item )
+void ReplaceView::slotClicked( TQListViewItem * item )
{
kdDebug(0) << "ReplaceView::slotClicked()" << endl;