From 4e44b4bcd4e3a66a97efc6099d653fba92884c26 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Thu, 8 Oct 2020 16:16:59 +0200 Subject: [PATCH] QT6: Fix : dragging view don't work --- sources/diagramview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index d8e0c9ca4..87fe9dedd 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -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();