Fix : dragging view don't work

This commit is contained in:
Claveau Joshua
2020-10-04 16:03:09 +02:00
parent 941aaf7087
commit 9193e1c39b
2 changed files with 2 additions and 2 deletions

View File

@@ -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")

View File

@@ -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")