25 #include <QtGui/QMouseEvent>
33 m_cursor(Qt::BlankCursor)
41 m_view->viewport()->setCursor(Qt::ArrowCursor);
48 case QEvent::MouseButtonPress:
49 return mousePressEvent(static_cast<QMouseEvent*>(e));
51 case QEvent::MouseMove:
52 return mouseMoveEvent(static_cast<QMouseEvent*>(e));
54 case QEvent::MouseButtonRelease:
55 return mouseReleaseEvent(static_cast<QMouseEvent*>(e));
57 case QEvent::MouseButtonDblClick:
58 return mouseDoubleClickEvent(static_cast<QMouseEvent*>(e));
62 if(m_cursor.shape() != Qt::BlankCursor)
63 m_view->viewport()->setCursor(m_cursor);
68 return QObject::eventFilter(watched, e);
Class representing the view. This view is child of QGraphicsView, part of Graphics View Framework...
Class representing the view. This view is child of QGraphicsView, part of Graphics View Framework...