diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index 6ea9d28f3..d8e0c9ca4 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -507,7 +507,7 @@ void DiagramView::mouseMoveEvent(QMouseEvent *e) //Drag the view #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove - if (e->button() == Qt::MidButton) + if (e->buttons() == Qt::MidButton) #else #if TODO_LIST #pragma message("@TODO remove code for QT 6 or later") diff --git a/sources/editor/elementview.cpp b/sources/editor/elementview.cpp index 7dcf2e3e1..877532cc6 100644 --- a/sources/editor/elementview.cpp +++ b/sources/editor/elementview.cpp @@ -395,7 +395,7 @@ void ElementView::mousePressEvent(QMouseEvent *e) { */ void ElementView::mouseMoveEvent(QMouseEvent *e) { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove - if (e->button() == Qt::MidButton) + if (e->buttons() == Qt::MidButton) #else #if TODO_LIST #pragma message("@TODO remove code for QT 6 or later")