diff --git a/custom3dinputhandler.cpp b/custom3dinputhandler.cpp index dbba0d91..1acb96bf 100644 --- a/custom3dinputhandler.cpp +++ b/custom3dinputhandler.cpp @@ -1,4 +1,5 @@ #include "custom3dinputhandler.h" +// required only with Qt5 build #include Custom3DInputHandler::Custom3DInputHandler(QAbstract3DGraph *graph) : Q3DInputHandler(graph), m_isRightDragging(false), m_graphRef(graph) { @@ -28,7 +29,6 @@ void Custom3DInputHandler::mousePressEvent(QMouseEvent *event, const QPoint &mou mappedButton, mappedButtons, event->modifiers()); #endif Q3DInputHandler::mousePressEvent(&customEvent, mousePos); - Q3DInputHandler::mousePressEvent(&customEvent, mousePos); } void Custom3DInputHandler::mouseReleaseEvent(QMouseEvent *event, const QPoint &mousePos) { @@ -51,7 +51,6 @@ void Custom3DInputHandler::mouseReleaseEvent(QMouseEvent *event, const QPoint &m QMouseEvent customEvent(event->type(), event->localPos(), event->globalPos(), mappedButton, mappedButtons, event->modifiers()); #endif - Q3DInputHandler::mousePressEvent(&customEvent, mousePos); Q3DInputHandler::mouseReleaseEvent(&customEvent, mousePos); }