rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kuickshow@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 0055c6cb46
commit 15186eff1e

@ -84,7 +84,7 @@ bool AboutWidget::eventFilter( TQObject *o, TQEvent *e )
{ {
if ( e->type() == TQEvent::MouseButtonPress ) { if ( e->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent *ev = TQT_TQMOUSEEVENT( e ); TQMouseEvent *ev = TQT_TQMOUSEEVENT( e );
if ( !m_homepage->tqgeometry().tqcontains( ev->pos() ) ) { if ( !m_homepage->tqgeometry().contains( ev->pos() ) ) {
deleteLater(); deleteLater();
return true; return true;
} }

@ -42,7 +42,7 @@ FileCache * FileCache::self()
KuickFile * FileCache::getFile( const KURL& url ) KuickFile * FileCache::getFile( const KURL& url )
{ {
TQString urlString = url.prettyURL(); TQString urlString = url.prettyURL();
KuickFile *file = m_files.tqfind( urlString ); KuickFile *file = m_files.find( urlString );
if ( !file ) { if ( !file ) {
file = new KuickFile( url ); file = new KuickFile( url );
m_files.insert( urlString, file ); m_files.insert( urlString, file );

@ -99,7 +99,7 @@ void FileWidget::initActions()
TQPopupMenu *pMenu = menu->popupMenu(); TQPopupMenu *pMenu = menu->popupMenu();
int lastItemId = pMenu->idAt( pMenu->count() - 1 ); int lastItemId = pMenu->idAt( pMenu->count() - 1 );
TQMenuItem *mItem = pMenu->tqfindItem( lastItemId ); TQMenuItem *mItem = pMenu->findItem( lastItemId );
if ( mItem && !mItem->isSeparator() ) if ( mItem && !mItem->isSeparator() )
menu->insert( sep ); menu->insert( sep );
@ -152,7 +152,7 @@ void FileWidget::activatedMenu( const KFileItem *item, const TQPoint& pos )
void FileWidget::findCompletion( const TQString& text ) void FileWidget::findCompletion( const TQString& text )
{ {
if ( text.at(0) == '/' || text.at(0) == '~' || if ( text.at(0) == '/' || text.at(0) == '~' ||
text.tqfind('/') != -1 ) { text.find('/') != -1 ) {
TQString t = m_fileFinder->completion()->makeCompletion( text ); TQString t = m_fileFinder->completion()->makeCompletion( text );
if (m_fileFinder->completionMode() == KGlobalSettings::CompletionPopup || if (m_fileFinder->completionMode() == KGlobalSettings::CompletionPopup ||
@ -399,7 +399,7 @@ void FileWidget::slotReturnPressed( const TQString& t )
setURL( url, true ); setURL( url, true );
} }
else if ( text.tqfind('/') != (int) text.length() -1 ) { // relative path else if ( text.find('/') != (int) text.length() -1 ) { // relative path
TQString dir = m_fileFinder->completion()->replacedPath( text ); TQString dir = m_fileFinder->completion()->replacedPath( text );
KURL u( url(), dir ); KURL u( url(), dir );
setURL( u, true ); setURL( u, true );

@ -602,7 +602,7 @@ KuickImage * ImageCache::getKuimage( KuickFile * file,
return 0L; return 0L;
KuickImage *kuim = 0L; KuickImage *kuim = 0L;
int index = fileList.tqfindIndex( file ); int index = fileList.findIndex( file );
if ( index != -1 ) { if ( index != -1 ) {
if ( index == 0 ) if ( index == 0 )
kuim = kuickList.at( 0 ); kuim = kuickList.at( 0 );

@ -67,7 +67,7 @@ bool KuickFile::download()
TQString ext; TQString ext;
TQString fileName = m_url.fileName(); TQString fileName = m_url.fileName();
int extIndex = fileName.tqfindRev('.'); int extIndex = fileName.findRev('.');
if ( extIndex > 0 ) if ( extIndex > 0 )
ext = fileName.mid( extIndex + 1 ); ext = fileName.mid( extIndex + 1 );

@ -319,7 +319,7 @@ void KuickShow::initGUI( const KURL& startDir )
TQPopupMenu *mainPopup = mainActionMenu->popupMenu(); TQPopupMenu *mainPopup = mainActionMenu->popupMenu();
int sortingIndex = mainPopup->indexOf( sortingMenu->itemId( 0 ) ); int sortingIndex = mainPopup->indexOf( sortingMenu->itemId( 0 ) );
int separatorId = mainPopup->idAt( sortingIndex + 1 ); int separatorId = mainPopup->idAt( sortingIndex + 1 );
TQMenuItem *separatorItem = mainPopup->tqfindItem( separatorId ); TQMenuItem *separatorItem = mainPopup->findItem( separatorId );
if ( separatorItem && separatorItem->isSeparator() ) if ( separatorItem && separatorItem->isSeparator() )
mainPopup->removeItem( separatorId ); mainPopup->removeItem( separatorId );
mainActionMenu->remove( sortingMenu ); mainActionMenu->remove( sortingMenu );

@ -183,7 +183,7 @@ TQString Printing::minimizeString( TQString text, const TQFontMetrics&
if ( mid <= 5 ) // sanity check if ( mid <= 5 ) // sanity check
return TQString(); return TQString();
text.tqreplace( mid - 1, 3, "..." ); text.replace( mid - 1, 3, "..." );
} }
return text; return text;

Loading…
Cancel
Save