summaryrefslogtreecommitdiffstats
path: root/languages/java/javasupportpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/java/javasupportpart.cpp')
-rw-r--r--languages/java/javasupportpart.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp
index e8f62fa1..68a22250 100644
--- a/languages/java/javasupportpart.cpp
+++ b/languages/java/javasupportpart.cpp
@@ -273,7 +273,7 @@ void JavaSupportPart::activePartChanged(KParts::Part *part)
m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() );
TQFileInfo fi( m_activeFileName );
TQString ext = fi.extension();
- if (fileExtensions().tqcontains(ext))
+ if (fileExtensions().contains(ext))
enabled = true;
}
@@ -395,7 +395,7 @@ void JavaSupportPart::savedFile(const KURL &fileName)
kdDebug(9013) << "savedFile(): " << fileName.mid ( m_projectDirectory.length() + 1 ) << endl;
TQStringList projectFileList = project()->allFiles();
- if (projectFileList.tqcontains(fileName.mid ( m_projectDirectory.length() + 1 ))) {
+ if (projectFileList.contains(fileName.mid ( m_projectDirectory.length() + 1 ))) {
maybeParse( fileName );
emit addedSourceInfo( fileName );
}
@@ -556,10 +556,10 @@ JavaSupportPart::parseProject( )
if( isValidSource(absFilePath) ){
TQDateTime t = fileInfo.lastModified();
- if( m_timestamp.tqcontains(absFilePath) && m_timestamp[absFilePath] == t )
+ if( m_timestamp.contains(absFilePath) && m_timestamp[absFilePath] == t )
continue;
- if( pcs.tqcontains(absFilePath) && t.toTime_t() == pcs[absFilePath].first ){
+ if( pcs.contains(absFilePath) && t.toTime_t() == pcs[absFilePath].first ){
stream.tqdevice()->at( pcs[absFilePath].second );
FileDom file = codeModel()->create<FileModel>();
file->read( stream );
@@ -607,7 +607,7 @@ void JavaSupportPart::maybeParse( const TQString& fileName )
return;
}
- TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.tqfind( path );
+ TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );
if( it != m_timestamp.end() && *it == t ){
return;
}
@@ -666,12 +666,12 @@ TQStringList JavaSupportPart::modifiedFileList()
TQFileInfo fileInfo( m_projectDirectory, fileName );
- if( !fileExtensions().tqcontains(fileInfo.extension()) )
+ if( !fileExtensions().contains(fileInfo.extension()) )
continue;
TQDateTime t = fileInfo.lastModified();
TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() );
- TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.tqfind( path );
+ TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );
if( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )
continue;
@@ -787,7 +787,7 @@ void JavaSupportPart::removeWithReferences( const TQString & fileName )
bool JavaSupportPart::isValidSource( const TQString& fileName ) const
{
TQFileInfo fileInfo( fileName );
- return fileExtensions().tqcontains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
+ return fileExtensions().contains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
}
TQString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )