mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Fix : dragging view don't work
This commit is contained in:
@@ -507,7 +507,7 @@ void DiagramView::mouseMoveEvent(QMouseEvent *e)
|
|||||||
|
|
||||||
//Drag the view
|
//Drag the view
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
||||||
if (e->button() == Qt::MidButton)
|
if (e->buttons() == Qt::MidButton)
|
||||||
#else
|
#else
|
||||||
#if TODO_LIST
|
#if TODO_LIST
|
||||||
#pragma message("@TODO remove code for QT 6 or later")
|
#pragma message("@TODO remove code for QT 6 or later")
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ void ElementView::mousePressEvent(QMouseEvent *e) {
|
|||||||
*/
|
*/
|
||||||
void ElementView::mouseMoveEvent(QMouseEvent *e) {
|
void ElementView::mouseMoveEvent(QMouseEvent *e) {
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
||||||
if (e->button() == Qt::MidButton)
|
if (e->buttons() == Qt::MidButton)
|
||||||
#else
|
#else
|
||||||
#if TODO_LIST
|
#if TODO_LIST
|
||||||
#pragma message("@TODO remove code for QT 6 or later")
|
#pragma message("@TODO remove code for QT 6 or later")
|
||||||
|
|||||||
Reference in New Issue
Block a user