Skip to content
Snippets Groups Projects
Commit 992af322 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: bold display when a USER value is set

parent 91b5a64d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment