From d538f2af73b2503db70c16c9e127930091f3b303 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 22 Jan 2015 13:35:12 +0200 Subject: [PATCH] Give program time update GUI. --HG-- branch : feature --- src/libs/vlayout/vposition.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index b194640fc..20eca8269 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -35,6 +35,7 @@ #include #include #include +#include //--------------------------------------------------------------------------------------------------------------------- VPosition::VPosition(const VContour &gContour, int j, const VLayoutDetail &detail, int i) @@ -45,6 +46,8 @@ VPosition::VPosition(const VContour &gContour, int j, const VLayoutDetail &detai //--------------------------------------------------------------------------------------------------------------------- void VPosition::run() { + QCoreApplication::processEvents(); + // We should use copy of the detail. VLayoutDetail workDetail = detail; @@ -63,6 +66,8 @@ void VPosition::run() for (int angle = 0; angle <= 360; angle = angle+180) { + QCoreApplication::processEvents(); + // We should use copy of the detail. VLayoutDetail workDetail = detail;