[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Sat Dec 11 04:44:35 CET 2004


CVS commit by netterfield: 

Put in debugging statements to look for unnecessary updateDialogs.
They are rather slow...  Some will be killed in the next commit, but
some remain.


  M +4 -0      kst.cpp   1.266


--- kdeextragear-2/kst/kst/kst.cpp  #1.265:1.266
@@ -34,4 +34,5 @@
 #include <kstandarddirs.h>
 #include <kstatusbar.h>
+#include <qdatetime.h>
 
 // application specific includes
@@ -1432,4 +1433,6 @@ void KstApp::updateDataDialogs(bool dm) 
 void KstApp::updateDialogs() {
   if (!_stopping) {
+    QTime t;
+    t.start();
     KstVectorDialogI::globalInstance()->update();
     KstPluginDialogI::globalInstance()->updateForm();
@@ -1449,4 +1452,5 @@ void KstApp::updateDialogs() {
     vectorSaveDialog->init();
     dataManager->update();
+    kdDebug() << "Dialogs updated in " << t.elapsed() << "ms" << endl;
   }
 }





More information about the Kst mailing list