Commit 6a7a8328 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QuickToolBar: fixes gradient editing

parent 3ecdb94c
...@@ -714,12 +714,12 @@ void GradientLine::mouseReleaseEvent(QMouseEvent *event) ...@@ -714,12 +714,12 @@ void GradientLine::mouseReleaseEvent(QMouseEvent *event)
m_stops.insert(index, stopPos); m_stops.insert(index, stopPos);
m_colorList.insert(index, QColor(Qt::white)); m_colorList.insert(index, QColor(Qt::white));
setCurrentIndex(index); setCurrentIndex(index);
updateGradient();
} }
} }
} }
m_dragActive = false; m_dragActive = false;
m_yOffset = 0; m_yOffset = 0;
updateGradient();
update(); update();
setFocus(Qt::MouseFocusReason); setFocus(Qt::MouseFocusReason);
} }
......
...@@ -207,7 +207,7 @@ protected: ...@@ -207,7 +207,7 @@ protected:
void mousePressEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event); void mouseDoubleClickEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *); void mouseReleaseEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *); void mouseMoveEvent(QMouseEvent *);
private: private:
void setup(); void setup();
......
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