Commit f86dbde2 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 f2e6461a
Pipeline #57726 passed with stage
in 11 minutes and 15 seconds
......@@ -453,7 +453,7 @@ void CustomLabel::mousePressEvent(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()) {
m_dragMode = true;
m_dragLastPosition = e->pos();
......@@ -492,7 +492,7 @@ void CustomLabel::mouseMoveEvent(QMouseEvent *e)
e->accept();
}
} else {
QWidget::mouseMoveEvent(e);
QProgressBar::mouseMoveEvent(e);
}
}
......
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