Commit 7f8ee4ba authored by Simon Eugster's avatar Simon Eugster
Browse files

Repaint vectorscope when the mouse leaves it (don't draw circle anymore)

svn path=/trunk/kdenlive/; revision=4615
parent 54230e10
......@@ -87,7 +87,7 @@ QPoint VectorscopeGenerator::mapToCircle(const QSize &targetSize, const QPointF
}
QImage VectorscopeGenerator::calculateVectorscope(const QSize &vectorscopeSize, const QImage &image, const float &gain,
const VectorscopeGenerator::PaintMode &paintMode, const bool &drawAxis,
const VectorscopeGenerator::PaintMode &paintMode, const bool&,
const uint &accelFactor) const
{
// Prepare the vectorscope data
......
......@@ -388,3 +388,12 @@ void Vectorscope::mouseMoveEvent(QMouseEvent *event)
m_mousePos = event->pos();
forceUpdateHUD();
}
void Vectorscope::leaveEvent(QEvent *event)
{
// Repaint the HUD without the circle
m_circleEnabled = false;
QWidget::leaveEvent(event);
forceUpdateHUD();
}
......@@ -35,6 +35,7 @@ public:
protected:
void mouseMoveEvent(QMouseEvent *);
void leaveEvent(QEvent *);
///// Implemented methods /////
......
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