branches/KDE/3.5/kdevelop/languages/cpp

Andreas Pakulat apaku at gmx.de
Tue Oct 23 22:58:45 UTC 2007


SVN commit 728690 by apaku:

This should fix the lag that could be experienced, specially on larger projects. As David pointed out the updatedSourceInfo signal is more like a "the whole code-model changed" thing.

Everybody who experiences short delays when typing normal code, please svn up and test. I couldn't get the delay to work here the last days so I'm not 100% sure it fixes this problem (but I'm pretty confident)
CCMAIL:kdevelop-devel at kdevelop.org
CCMAIL:cyb at lepi.org

 M  +6 -1      cppsupportpart.cpp  


--- branches/KDE/3.5/kdevelop/languages/cpp/cppsupportpart.cpp #728689:728690
@@ -2533,6 +2533,9 @@
 				QStringList l = files.res;
 				while(!l.isEmpty() ) {
 					emit addedSourceInfo( l.front() );
+					emit aboutToRemoveSourceInfo( l.front() );
+					emit removedSourceInfo( l.front() );
+					emit addedSourceInfo( l.front() );
 					l.pop_front();
 				}
 
@@ -2542,9 +2545,11 @@
 				QStringList l = files.res;
 				while( !l.isEmpty() ) {
 					emit codeModelUpdated( l.front() );
+					emit aboutToRemoveSourceInfo( l.front() );
+					emit removedSourceInfo( l.front() );
+					emit addedSourceInfo( l.front() );
 					l.pop_front();
 				}
-				emit updatedSourceInfo();
 			}
 		}
 		kdDebug( 9007 ) << "files in code-model after parseEmit: " << codeModel()->fileList().count() << " before: " << oldFileCount << endl;




More information about the KDevelop-devel mailing list