Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions custom3dinputhandler.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "custom3dinputhandler.h"
// required only with Qt5 build
#include <QtMath>
Custom3DInputHandler::Custom3DInputHandler(QAbstract3DGraph *graph)
: Q3DInputHandler(graph), m_isRightDragging(false), m_graphRef(graph) {
Expand Down Expand Up @@ -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) {
Expand All @@ -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);
}

Expand Down
Loading