From eb357b4fc40bb77bc6ff0c91d8e7141ce3ebef75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 8 Mar 2013 14:18:55 +0000 Subject: [PATCH] Added scripting funcrion to update ui while in scripting mode git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16487 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/Core.cc | 6 ++++++ Core/Core.hh | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Core/Core.cc b/Core/Core.cc index 19a080d8..a95cba36 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -921,6 +921,12 @@ void Core::updateView() } +//----------------------------------------------------------------------------- + +void Core::updateUI() { + QApplication::processEvents(); +} + //----------------------------------------------------------------------------- diff --git a/Core/Core.hh b/Core/Core.hh index f03ab875..882c5be0 100644 --- a/Core/Core.hh +++ b/Core/Core.hh @@ -639,6 +639,9 @@ public slots: /// Called when a plugin requests an update in the viewer void updateView(); + /// process events during script execution to keep the ui alive + void updateUI(); + /// Clear all data objects void clearAll(); -- GitLab