[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Tue Oct 11 04:44:40 CEST 2005


SVN commit 469403 by staikos:

use a busy cursor when opening a Kst file too


 M  +8 -0      kstdoc.cpp  


--- trunk/extragear/graphics/kst/kst/kstdoc.cpp #469402:469403
@@ -178,6 +178,7 @@
     return false;
   }
 
+  QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
   opening = true;
 
   deleteContents();
@@ -190,6 +191,7 @@
     opening = false;
     _updating = false;
     KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
     return false;
   }
 
@@ -206,6 +208,7 @@
     opening = false;
     _updating = false;
     KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
     return false;
   }
 
@@ -215,6 +218,7 @@
     opening = false;
     _updating = false;
     KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
     return false;
   }
 
@@ -237,6 +241,7 @@
     opening = false;
     _updating = false;
     KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
     return false;
   }
 
@@ -247,6 +252,7 @@
     opening = false;
     _updating = false;
     KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
     return false;
   }
 
@@ -527,9 +533,11 @@
   opening = false;
 
   KstApp::inst()->setPaused(false);
+    QApplication::restoreOverrideCursor();
   return true;
 }
 
+
 void KstDoc::saveDocument(QTextStream& ts, bool saveAbsoluteVectorPositions) {
   KstApp *app = KstApp::inst();
   ts << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl;


More information about the Kst mailing list