diff options
author | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-08-09 22:25:47 -0500 |
commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/src/tools/tqlibrary.cpp | |
parent | 79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff) | |
download | experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqlibrary.cpp')
-rw-r--r-- | tqtinterface/qt4/src/tools/tqlibrary.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tqtinterface/qt4/src/tools/tqlibrary.cpp b/tqtinterface/qt4/src/tools/tqlibrary.cpp index cf34295..5236cd5 100644 --- a/tqtinterface/qt4/src/tools/tqlibrary.cpp +++ b/tqtinterface/qt4/src/tools/tqlibrary.cpp @@ -140,7 +140,7 @@ TQLibraryPrivate::TQLibraryPrivate( TQLibrary *lib ) TQLibrary::TQLibrary( const TQString& filename ) : libfile( filename ), aunload( TRUE ) { - libfile.tqreplace( '\\', '/' ); + libfile.replace( '\\', '/' ); d = new TQLibraryPrivate( this ); } @@ -399,7 +399,7 @@ TQString TQLibrary::library() const TQString filename = libfile; #if defined(TQ_WS_WIN) - if ( filename.tqfindRev( '.' ) <= filename.tqfindRev( '/' ) ) + if ( filename.findRev( '.' ) <= filename.findRev( '/' ) ) filename += ".dll"; #else TQStringList filters = ""; @@ -421,7 +421,7 @@ TQString TQLibrary::library() const break; } else if(!filter.isEmpty()) { TQString tmpfilename = filename; - const int x = tmpfilename.tqfindRev( "/" ); + const int x = tmpfilename.findRev( "/" ); if ( x != -1 ) { TQString path = tmpfilename.left( x + 1 ); TQString file = tmpfilename.right( tmpfilename.length() - x - 1 ); @@ -429,7 +429,7 @@ TQString TQLibrary::library() const } else { tmpfilename = TQString( "lib%1" ).arg( filename ); } - if ( !filename.tqcontains(".so") ) + if ( !filename.contains(".so") ) tmpfilename += filter; if(TQFile::exists(tmpfilename) || it == filters.end()) { filename = tmpfilename; |