From 029d58bb2bdd583786fac659b5c07c0582569f48 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 13 Sep 2011 15:43:52 +0200 Subject: [PATCH] ENH : add a signal launching the update of the GUI --- Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.cxx | 1 + Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.cxx index 113e5064f3..fdb66d21c7 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.cxx @@ -36,6 +36,7 @@ void QtWidgetModel::NotifyUpdate() { // Update the parameters m_Application->UpdateParameters(); + emit UpdateGui(); // Notify all bool applicationStatus = m_Application->IsApplicationReady(); diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.h b/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.h index e6ec3b9442..27ffe6c13e 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.h +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetModel.h @@ -84,6 +84,7 @@ signals: void SetApplicationReady(bool); void SetProgressReportBegin(); void SetProgressReportDone(); + void UpdateGui(); protected slots: // slot called everytime one of the widget is updated -- GitLab