From 992af322051af73354525ef5a73bb4217289bdf5 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Fri, 16 Sep 2011 18:15:49 +0200
Subject: [PATCH] ENH: bold display when a USER value is set

---
 .../otbWrapperQtWidgetIntParameter.cxx         | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetIntParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetIntParameter.cxx
index d56b0c7438..e4e51e4144 100644
--- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetIntParameter.cxx
+++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetIntParameter.cxx
@@ -61,8 +61,24 @@ void QtWidgetIntParameter::SetUpdateGui()
 void QtWidgetIntParameter::DoUpdateGUI()
 {
   bool signalsBlocked = m_QSpinBox->blockSignals( true );
-  m_QSpinBox->setValue(m_IntParam->GetValue());
+
+  if (m_IntParam->HasValue())
+    {
+    m_QSpinBox->setValue(m_IntParam->GetValue());
+    }
   m_QSpinBox->blockSignals( signalsBlocked );
+
+  QFont font = m_QSpinBox->font();
+  if (m_IntParam->HasUserValue())
+    {
+    font.setBold(true);
+    }
+  else
+    {
+    font.setBold(false);
+    }
+  m_QSpinBox->setFont(font);
+
 }
 
 void QtWidgetIntParameter::SetValue(int value)
-- 
GitLab