Fix pen not working on Schematic Viewer

This commit is contained in:
manongjohn 2022-11-21 01:22:07 -05:00
parent 43245c3125
commit 2168701b79

View file

@ -281,6 +281,7 @@ void SchematicSceneViewer::mousePressEvent(QMouseEvent *me) {
/*! Reimplemets the QGraphicsView::mouseMoveEvent() /*! Reimplemets the QGraphicsView::mouseMoveEvent()
*/ */
void SchematicSceneViewer::mouseMoveEvent(QMouseEvent *me) { void SchematicSceneViewer::mouseMoveEvent(QMouseEvent *me) {
// qDebug() << "[mouseMoveEvent]";
if (m_gestureActive && m_touchDevice == QTouchDevice::TouchScreen && if (m_gestureActive && m_touchDevice == QTouchDevice::TouchScreen &&
!m_stylusUsed) { !m_stylusUsed) {
return; return;
@ -550,7 +551,7 @@ void SchematicSceneViewer::tabletEvent(QTabletEvent *e) {
m_stylusUsed = false; m_stylusUsed = false;
} }
e->accept(); QGraphicsView::tabletEvent(e);
} }
//------------------------------------------------------------------ //------------------------------------------------------------------