| 35 | } |
| 36 | |
| 37 | void ColorWheel::setColor(const QColor &color) |
| 38 | { |
| 39 | if(color == current) return; |
| 40 | if(color.hue() != current.hue()) |
| 41 | { |
| 42 | hueChanged(color.hue()); |
| 43 | } |
| 44 | |
| 45 | if((color.saturation() != current.saturation()) || (color.value() != current.value())) |
| 46 | { |
| 47 | svChanged(color); |
| 48 | } |
| 49 | |
| 50 | update(); |
| 51 | emit colorChanged(color); |
| 52 | } |
| 53 | |
| 54 | |
| 55 | QColor ColorWheel::posColor(const QPoint &point) |
no test coverage detected