[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jun 21 22:23:13 CEST 2004


CVS commit by staikos: 

enable realtime updates - pause/resume buttons still not fully working, and
I'm not sure if it was a bad build, but I was getting crashes without -O0


  M +2 -0      kstdoc.cpp   1.90
  M +1 -1      threadevents.h   1.3
  M +1 -0      updatethread.cpp   1.15


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.89:1.90
@@ -786,4 +786,6 @@ bool KstDoc::event(QEvent *e) {
 
       updateDialogs();
+    } else if (te->_eventType == ThreadEvent::Repaint) {
+      KstApp::inst()->paintAll();
     } else if (te->_eventType == ThreadEvent::Done) {
     }

--- kdeextragear-2/kst/kst/threadevents.h  #1.2:1.3
@@ -23,5 +23,5 @@
 class ThreadEvent : public QEvent {
   public:
-    enum ThreadEventType { Unknown = 0, UpdateDialogs, Done };
+    enum ThreadEventType { Unknown = 0, UpdateDialogs, Repaint, Done };
 
     ThreadEvent(ThreadEventType et) : QEvent(QEvent::Type(KstEventTypeThread)), _eventType(et) {}

--- kdeextragear-2/kst/kst/updatethread.cpp  #1.14:1.15
@@ -81,4 +81,5 @@ void UpdateThread::run() {
 #endif
       QApplication::postEvent(_doc, new ThreadEvent(ThreadEvent::UpdateDialogs));
+      QApplication::postEvent(_doc, new ThreadEvent(ThreadEvent::Repaint));
     }
   }





More information about the Kst mailing list