QT6: Fix : dragging view don't work

This commit is contained in:
Simon De Backer 2020-10-08 16:16:59 +02:00
parent 9193e1c39b
commit 4e44b4bcd4

View File

@ -512,7 +512,7 @@ void DiagramView::mouseMoveEvent(QMouseEvent *e)
#if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later")
#endif
if (e->button() == Qt::MiddleButton)
if (e->buttons() == Qt::MiddleButton)
#endif
{
QScrollBar *h = horizontalScrollBar();