diff options
author | Michele Calgaro <[email protected]> | 2015-06-17 15:33:10 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-06-17 15:33:10 +0900 |
commit | e044c5463329652f28565dfc7de24ef8b0edaa6f (patch) | |
tree | e1bf1de8f39cd95e31dc43474af51ba7b891af48 /languages/cpp/cppsupportpart.cpp | |
parent | 065693194f81b16c3d6deb7fb70a07ae0e884eb6 (diff) | |
download | tdevelop-e044c5463329652f28565dfc7de24ef8b0edaa6f.tar.gz tdevelop-e044c5463329652f28565dfc7de24ef8b0edaa6f.zip |
Revert to .kdevelop files with <kdevelop> entity name for project files.
This resolves bug 2308.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'languages/cpp/cppsupportpart.cpp')
-rw-r--r-- | languages/cpp/cppsupportpart.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp index 11a949a8..582fef1b 100644 --- a/languages/cpp/cppsupportpart.cpp +++ b/languages/cpp/cppsupportpart.cpp @@ -1468,19 +1468,19 @@ bool CppSupportPart::parseProject( bool force ) _jd = new JobData; if( TQFileInfo( project() ->projectDirectory() + "/" + project()->projectName().lower() - + ".tdevelop.pcs" ).exists()) + + ".kdevelop.pcs" ).exists()) { TQDir d( project() ->projectDirectory()); - d.rename(project() ->projectName().lower() + ".tdevelop.pcs", - project() ->projectName() +".tdevelop.pcs"); + d.rename(project() ->projectName().lower() + ".kdevelop.pcs", + project() ->projectName() +".kdevelop.pcs"); } _jd->file.setName( project() ->projectDirectory() + "/" + project()->projectName() - + ".tdevelop.pcs" ); + + ".kdevelop.pcs" ); TQString skip_file_name = project() ->projectDirectory() + "/" + - project() ->projectName() + ".tdevelop.ignore_pcs"; + project() ->projectName() + ".kdevelop.ignore_pcs"; TQString skip_lower_file_name = project() ->projectDirectory() + "/" + - project() ->projectName().lower() + ".tdevelop.ignore_pcs"; + project() ->projectName().lower() + ".kdevelop.ignore_pcs"; if ( !force && !TQFile::exists( skip_file_name ) && !TQFile::exists( skip_lower_file_name ) && _jd->file.open( IO_ReadOnly ) ) @@ -1620,10 +1620,10 @@ void CppSupportPart::slotParseFiles() mainWindow( ) ->statusBar( ) ->message( i18n( "Done" ), 2000 ); TQFile::remove( project() ->projectDirectory() + "/" + project() ->projectName() - + ".tdevelop.ignore_pcs" ); + + ".kdevelop.ignore_pcs" ); TQFile::remove( project() ->projectDirectory() + "/" + project() ->projectName().lower() - + ".tdevelop.ignore_pcs" ); + + ".kdevelop.ignore_pcs" ); } else @@ -2160,7 +2160,7 @@ void CppSupportPart::saveProjectSourceInfo() return ; TQFile f( project() ->projectDirectory() + "/" - + project() ->projectName() + ".tdevelop.pcs" ); + + project() ->projectName() + ".kdevelop.pcs" ); if ( !f.open( IO_WriteOnly ) ) return ; @@ -2201,9 +2201,9 @@ void CppSupportPart::saveProjectSourceInfo() } TQFile::remove( project() ->projectDirectory() + "/" - + project() ->projectName() + ".tdevelop.ignore_pcs" ); + + project() ->projectName() + ".kdevelop.ignore_pcs" ); TQFile::remove( project() ->projectDirectory() + "/" - + project() ->projectName().lower() + ".tdevelop.ignore_pcs" ); + + project() ->projectName().lower() + ".kdevelop.ignore_pcs" ); m_backgroundParser->unlock(); } @@ -2714,7 +2714,7 @@ void CppSupportPart::createIgnorePCSFile( ) static TQCString skip_me( "ignore me\n" ); TQString skip_file_name = project() ->projectDirectory() + "/" - + project() ->projectName() + ".tdevelop.ignore_pcs"; + + project() ->projectName() + ".kdevelop.ignore_pcs"; TQFile skip_pcs_file( skip_file_name ); if ( skip_pcs_file.open( IO_WriteOnly ) ) { |