[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue Nov 23 21:55:58 UTC 2004


CVS commit by okellogg: 

kapp->processEvents() improves responsiveness.


  M +6 -0      umlobject.cpp   1.56


--- kdesdk/umbrello/umbrello/umlobject.cpp  #1.55:1.56
@@ -15,4 +15,5 @@
 #include <qregexp.h>
 #include <kdebug.h>
+#include <kapplication.h>
 #include "umlobject.h"
 #include "uml.h"
@@ -334,4 +335,5 @@ bool UMLObject::resolveRef() {
                     m_BaseType != Uml::ot_Association && m_BaseType != Uml::ot_UMLObject)
                         umldoc->signalUMLObjectCreated(this);
+                kapp->processEvents();  // give UI events a chance
                 return true;
         }
@@ -347,4 +349,5 @@ bool UMLObject::resolveRef() {
                             m_BaseType != Uml::ot_Association && m_BaseType != Uml::ot_UMLObject)
                                 umldoc->signalUMLObjectCreated(this);
+                        kapp->processEvents();  // give UI events a chance
                         return true;
                 }
@@ -358,4 +361,5 @@ bool UMLObject::resolveRef() {
                             m_BaseType != Uml::ot_Association && m_BaseType != Uml::ot_UMLObject)
                                 umldoc->signalUMLObjectCreated(this);
+                        kapp->processEvents();  // give UI events a chance
                         return true;
                 }
@@ -390,4 +394,5 @@ bool UMLObject::resolveRef() {
                 }
                 m_pSecondary = pDoc->createUMLObject(ot, m_SecondaryId, NULL, true);
+                kapp->processEvents();  // give UI events a chance
                 // The `prepend' flag is set true because we need to move the
                 // newly created item to before the current item in UMLDoc's
@@ -416,4 +421,5 @@ bool UMLObject::resolveRef() {
             m_BaseType != Uml::ot_Association && m_BaseType != Uml::ot_UMLObject)
                 umldoc->signalUMLObjectCreated(this);
+        kapp->processEvents();  // give UI events a chance
         return true;
 }






More information about the umbrello-devel mailing list