Fix pen not working on Schematic Viewer
This commit is contained in:
parent
43245c3125
commit
2168701b79
1 changed files with 2 additions and 1 deletions
|
@ -281,6 +281,7 @@ void SchematicSceneViewer::mousePressEvent(QMouseEvent *me) {
|
|||
/*! Reimplemets the QGraphicsView::mouseMoveEvent()
|
||||
*/
|
||||
void SchematicSceneViewer::mouseMoveEvent(QMouseEvent *me) {
|
||||
// qDebug() << "[mouseMoveEvent]";
|
||||
if (m_gestureActive && m_touchDevice == QTouchDevice::TouchScreen &&
|
||||
!m_stylusUsed) {
|
||||
return;
|
||||
|
@ -550,7 +551,7 @@ void SchematicSceneViewer::tabletEvent(QTabletEvent *e) {
|
|||
m_stylusUsed = false;
|
||||
}
|
||||
|
||||
e->accept();
|
||||
QGraphicsView::tabletEvent(e);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue