Commit 7d854707 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Try to fix value change on hover issue (maybe Qt regression)

CCBUG: 435531
parent 084d021f
...@@ -453,7 +453,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *e) ...@@ -453,7 +453,7 @@ void CustomLabel::mousePressEvent(QMouseEvent *e)
void CustomLabel::mouseMoveEvent(QMouseEvent *e) void CustomLabel::mouseMoveEvent(QMouseEvent *e)
{ {
if (m_dragStartPosition != QPoint(-1, -1)) { if ((e->buttons() & Qt::LeftButton) && m_dragStartPosition != QPoint(-1, -1)) {
if (!m_dragMode && (e->pos() - m_dragStartPosition).manhattanLength() >= QApplication::startDragDistance()) { if (!m_dragMode && (e->pos() - m_dragStartPosition).manhattanLength() >= QApplication::startDragDistance()) {
m_dragMode = true; m_dragMode = true;
m_dragLastPosition = e->pos(); m_dragLastPosition = e->pos();
...@@ -492,7 +492,7 @@ void CustomLabel::mouseMoveEvent(QMouseEvent *e) ...@@ -492,7 +492,7 @@ void CustomLabel::mouseMoveEvent(QMouseEvent *e)
e->accept(); e->accept();
} }
} else { } else {
QWidget::mouseMoveEvent(e); QProgressBar::mouseMoveEvent(e);
} }
} }
......
Supports Markdown
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