20 #include <QColorDialog>
24 : QDialog( parent ), mRamp( ramp )
28 spinCount->setValue( ramp->
count() );
29 spinHue1->setValue( ramp->
hueMin() );
30 spinHue2->setValue( ramp->
hueMax() );
31 spinSat1->setValue( ramp->
satMin() );
32 spinSat2->setValue( ramp->
satMax() );
33 spinVal1->setValue( ramp->
valMin() );
34 spinVal2->setValue( ramp->
valMax() );
36 connect( spinCount, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setCount(
int ) ) );
37 connect( spinHue1, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setHue1(
int ) ) );
38 connect( spinHue2, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setHue2(
int ) ) );
39 connect( spinSat1, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setSat1(
int ) ) );
40 connect( spinSat2, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setSat2(
int ) ) );
41 connect( spinVal1, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setVal1(
int ) ) );
42 connect( spinVal2, SIGNAL( valueChanged(
int ) ),
this, SLOT(
setVal2(
int ) ) );
51 QSize
size( 300, 40 );