Commit f5adb7b4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectSettingValue: Fixing get for Color settings.

QColor constructor takes color composant in the [0;255] range.
parent b19a230f
......@@ -139,7 +139,7 @@ EffectSettingValue::get()
f0r_param_color_t tmp;
m_effectInstance->effect()->m_f0r_get_param_value( m_effectInstance->m_instance,
&tmp, m_index );
m_val = QColor( tmp.r, tmp.g, tmp.b );
m_val.setValue( QColor::fromRgbF( tmp.r, tmp.g, tmp.b ) );
break ;
}
case Position:
......
......@@ -34,7 +34,7 @@ ColorWidget::ColorWidget( SettingValue *s, QWidget *parent ) :
m_button = new QPushButton( parent );
m_button->setPalette( QPalette( m_color ) );
connect( m_button, SIGNAL( clicked() ), this, SLOT( buttonClicked() ) );
changed( s->get() );
changed( m_color );
}
QWidget*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment