Fix Hue box not updating when set all is used
This commit is contained in:
parent
313bc8b616
commit
52a9120257
2 changed files with 3 additions and 3 deletions
4
dependencies/ColorWheel/ColorWheel.cpp
vendored
4
dependencies/ColorWheel/ColorWheel.cpp
vendored
|
|
@ -485,12 +485,12 @@ void ColorWheel::hueChanged(const int &hue)
|
|||
int v = current.value();
|
||||
current.setHsv(hue, s, v);
|
||||
|
||||
drawSquareImage(hue);
|
||||
|
||||
if(!isVisible())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
drawSquareImage(hue);
|
||||
repaint();
|
||||
|
||||
emit colorChanged(current);
|
||||
|
|
|
|||
2
dependencies/ColorWheel/ColorWheel.h
vendored
2
dependencies/ColorWheel/ColorWheel.h
vendored
|
|
@ -12,7 +12,7 @@ public:
|
|||
virtual QSize sizeHint () const;
|
||||
virtual QSize minimumSizeHint () const;
|
||||
QColor color();
|
||||
|
||||
|
||||
signals:
|
||||
void colorChanged(const QColor color);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue