rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdirstat@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 18a819f5b3
commit b8e1a56a90

@ -278,7 +278,7 @@ KCleanup::itemDir( const KFileInfo *item ) const
if ( ! item->isDir() && ! item->isDotEntry() ) if ( ! item->isDir() && ! item->isDotEntry() )
{ {
dir.tqreplace ( TQRegExp ( "/[^/]*$" ), "" ); dir.replace ( TQRegExp ( "/[^/]*$" ), "" );
} }
return dir; return dir;
@ -299,7 +299,7 @@ KCleanup::cleanTitle() const
// Get rid of any "&" characters in the text that denote keyboard // Get rid of any "&" characters in the text that denote keyboard
// shortcuts in menus. // shortcuts in menus.
title.tqreplace( TQRegExp( "&" ), "" ); title.replace( TQRegExp( "&" ), "" );
return title; return title;
} }
@ -311,15 +311,15 @@ KCleanup::expandVariables( const KFileInfo * item,
{ {
TQString expanded = unexpanded; TQString expanded = unexpanded;
expanded.tqreplace( TQRegExp( "%p" ), expanded.replace( TQRegExp( "%p" ),
"\"" + TQString::fromLocal8Bit( item->url() ) + "\"" ); "\"" + TQString::fromLocal8Bit( item->url() ) + "\"" );
expanded.tqreplace( TQRegExp( "%n" ), expanded.replace( TQRegExp( "%n" ),
"\"" + TQString::fromLocal8Bit( item->name() ) + "\"" ); "\"" + TQString::fromLocal8Bit( item->name() ) + "\"" );
if ( KDE::versionMajor() >= 3 && KDE::versionMinor() >= 4 ) if ( KDE::versionMajor() >= 3 && KDE::versionMinor() >= 4 )
expanded.tqreplace( TQRegExp( "%t" ), "trash:/" ); expanded.replace( TQRegExp( "%t" ), "trash:/" );
else else
expanded.tqreplace( TQRegExp( "%t" ), KGlobalSettings::trashPath() ); expanded.replace( TQRegExp( "%t" ), KGlobalSettings::trashPath() );
return expanded; return expanded;
} }

@ -328,7 +328,7 @@ KFileInfo::locate( TQString url, bool findDotEntries )
// if the rest of the URL consists of several pathname components. // if the rest of the URL consists of several pathname components.
if ( dotEntry() && if ( dotEntry() &&
url.tqfind ( "/" ) < 0 ) // No (more) "/" in this URL url.find ( "/" ) < 0 ) // No (more) "/" in this URL
{ {
return dotEntry()->locate( url, findDotEntries ); return dotEntry()->locate( url, findDotEntries );
} }

@ -293,7 +293,7 @@ KPacMan::mouseReleaseEvent ( TQMouseEvent *ev )
{ {
if ( _active ) if ( _active )
{ {
if ( _pacMan->lastPacMan().tqcontains( ev->pos() ) ) if ( _pacMan->lastPacMan().contains( ev->pos() ) )
stop(); stop();
} }
} }

@ -190,7 +190,7 @@ KTreemapView::contentsMousePressEvent( TQMouseEvent * event )
// Select clicked tile's tqparent, if available // Select clicked tile's tqparent, if available
if ( _selectedTile && if ( _selectedTile &&
_selectedTile->rect().tqcontains( event->pos() ) ) _selectedTile->rect().contains( event->pos() ) )
{ {
if ( _selectedTile->parentTile() ) if ( _selectedTile->parentTile() )
tile = _selectedTile->parentTile(); tile = _selectedTile->parentTile();
@ -213,7 +213,7 @@ KTreemapView::contentsMousePressEvent( TQMouseEvent * event )
if ( tile ) if ( tile )
{ {
if ( _selectedTile && if ( _selectedTile &&
_selectedTile->rect().tqcontains( event->pos() ) ) _selectedTile->rect().contains( event->pos() ) )
{ {
// If a directory (non-leaf tile) is already selected, // If a directory (non-leaf tile) is already selected,
// don't override this by // don't override this by

Loading…
Cancel
Save