summaryrefslogtreecommitdiffstats
path: root/kdat
diff options
context:
space:
mode:
Diffstat (limited to 'kdat')
-rw-r--r--kdat/Archive.cpp2
-rw-r--r--kdat/BackupProfileWidget.cpp2
-rw-r--r--kdat/Node.cpp10
-rw-r--r--kdat/Util.cpp4
-rw-r--r--kdat/VerifyDlg.cpp4
-rw-r--r--kdat/ktreeview.cpp6
6 files changed, 14 insertions, 14 deletions
diff --git a/kdat/Archive.cpp b/kdat/Archive.cpp
index 1a78d44..a6869ad 100644
--- a/kdat/Archive.cpp
+++ b/kdat/Archive.cpp
@@ -266,7 +266,7 @@ File* Archive::addFile( int size, int mtime, int startRecord, int endRecord, con
TQString fn( filename );
int idx = 0;
- while ( ( idx = fn.tqfind( '/' ) ) > -1 ) {
+ while ( ( idx = fn.find( '/' ) ) > -1 ) {
path.append( fn.left( idx + 1 ) );
fn.remove( 0, idx + 1 );
}
diff --git a/kdat/BackupProfileWidget.cpp b/kdat/BackupProfileWidget.cpp
index 7530d5c..1cd3f4c 100644
--- a/kdat/BackupProfileWidget.cpp
+++ b/kdat/BackupProfileWidget.cpp
@@ -205,7 +205,7 @@ void BackupProfileWidget::setAbsoluteFiles( const TQStringList& files )
TQString prefix = Util::longestCommonPath( files );
_workingDir->clear();
- for ( int pos = prefix.length(); pos > 0; pos = prefix.tqfindRev( '/', pos - 1 ) ) {
+ for ( int pos = prefix.length(); pos > 0; pos = prefix.findRev( '/', pos - 1 ) ) {
_workingDir->insertItem( prefix.left( pos ) );
}
_workingDir->insertItem( "/" );
diff --git a/kdat/Node.cpp b/kdat/Node.cpp
index 7999c9d..9ce9e03 100644
--- a/kdat/Node.cpp
+++ b/kdat/Node.cpp
@@ -311,7 +311,7 @@ TapeDirectoryNode::TapeDirectoryNode( File* file )
setDelayedExpanding( TRUE );
int len = _file->getName().length();
- int idx1 = _file->getName().tqfindRev( '/', len - 2 );
+ int idx1 = _file->getName().findRev( '/', len - 2 );
if ( idx1 < 0 ) {
setText( _file->getName().left( len - 1 ) );
} else {
@@ -372,7 +372,7 @@ TapeFileNode::TapeFileNode( File* file )
_file( file )
{
int len = _file->getName().length();
- int idx1 = _file->getName().tqfindRev( '/', len - 1 );
+ int idx1 = _file->getName().findRev( '/', len - 1 );
if ( idx1 < 0 ) {
setText( _file->getName().left( len ) );
} else {
@@ -482,7 +482,7 @@ const TQPixmap* SelectableNode::getSelectPixmap() const
bool SelectableNode::mousePressEvent( const TQPoint& point )
{
- if ( _selectRect.tqcontains( point ) ) {
+ if ( _selectRect.contains( point ) ) {
switch ( _state ) {
case SelAll:
setSelected( FALSE );
@@ -713,7 +713,7 @@ MountedTapeDirectoryNode::MountedTapeDirectoryNode( File* file, int state )
setDelayedExpanding( TRUE );
int len = _file->getName().length();
- int idx1 = _file->getName().tqfindRev( '/', len - 2 );
+ int idx1 = _file->getName().findRev( '/', len - 2 );
if ( idx1 < 0 ) {
setText( _file->getName().left( len - 1 ) );
} else {
@@ -819,7 +819,7 @@ MountedTapeFileNode::MountedTapeFileNode( File* file, int state )
_file( file )
{
int len = _file->getName().length();
- int idx1 = _file->getName().tqfindRev( '/', len - 1 );
+ int idx1 = _file->getName().findRev( '/', len - 1 );
if ( idx1 < 0 ) {
setText( _file->getName().left( len ) );
} else {
diff --git a/kdat/Util.cpp b/kdat/Util.cpp
index 7f1dcd7..11e7219 100644
--- a/kdat/Util.cpp
+++ b/kdat/Util.cpp
@@ -60,9 +60,9 @@ TQString Util::longestCommonPath( const TQStringList& files )
}
i = filesTmp.begin();
TQString prefix = *i;
- int idx = prefix.tqfindRev( '/', j );
+ int idx = prefix.findRev( '/', j );
if ( idx > -1 ) {
- prefix = prefix.left( prefix.tqfindRev( '/', j ) );
+ prefix = prefix.left( prefix.findRev( '/', j ) );
} else {
prefix = "";
}
diff --git a/kdat/VerifyDlg.cpp b/kdat/VerifyDlg.cpp
index 93e8a93..520c050 100644
--- a/kdat/VerifyDlg.cpp
+++ b/kdat/VerifyDlg.cpp
@@ -248,7 +248,7 @@ void VerifyDlg::slotProcessExited( KProcess* )
void VerifyDlg::slotStdout( KProcess*, char* buf, int len )
{
TQString data;
- data.tqreplace( 0, len, buf );
+ data.replace( 0, len, buf );
/* 2002-02-23 RG */
// data[len] = '\0';
data.truncate( len );
@@ -256,7 +256,7 @@ void VerifyDlg::slotStdout( KProcess*, char* buf, int len )
_leftover += data;
int newlineIndex;
- while ( ( newlineIndex = _leftover.tqfind( '\n' ) ) > -1 ) {
+ while ( ( newlineIndex = _leftover.find( '\n' ) ) > -1 ) {
_log->append( _leftover.left( newlineIndex ) );
// Count differences.
diff --git a/kdat/ktreeview.cpp b/kdat/ktreeview.cpp
index c43cb35..2a31a19 100644
--- a/kdat/ktreeview.cpp
+++ b/kdat/ktreeview.cpp
@@ -155,7 +155,7 @@ int KTreeViewItem::childIndex(KTreeViewItem* searched) const
// indicates whether mouse press is in expand button
inline bool KTreeViewItem::expandButtonClicked(const TQPoint& coord) const
{
- return expandButton.tqcontains(coord);
+ return expandButton.contains(coord);
}
bool KTreeViewItem::mousePressEvent( const TQPoint& )
@@ -1681,7 +1681,7 @@ void KTreeView::mouseDoubleClickEvent(TQMouseEvent *e)
// hit test item
int indent = indentation(item);
- if(item->boundingRect(indent).tqcontains(cellCoord))
+ if(item->boundingRect(indent).contains(cellCoord))
emit selected(itemClicked);
}
@@ -1749,7 +1749,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e)
emit selected(itemClicked);
}
// hit item (to show info on the file/dir label clicked)
- else if (item->boundingRect(indentation(item)).tqcontains(cellCoord)) {
+ else if (item->boundingRect(indentation(item)).contains(cellCoord)) {
setCurrentItem(itemClicked); // highlight item
if ( e->button() == Qt::RightButton ) {
emit popupMenu( itemClicked, mapToGlobal( TQPoint( e->pos().x(), e->pos().y() ) ) );