ATLAS Offline Software
Loading...
Searching...
No Matches
GraphicsView Class Reference

#include <VP1EventDisplaySceneView.h>

Inheritance diagram for GraphicsView:
Collaboration diagram for GraphicsView:

Public Member Functions

 GraphicsView (VP1EventDisplaySceneView *v)

Protected Member Functions

void wheelEvent (QWheelEvent *)

Private Attributes

VP1EventDisplaySceneViewm_view

Detailed Description

Definition at line 44 of file VP1EventDisplaySceneView.h.

Constructor & Destructor Documentation

◆ GraphicsView()

GraphicsView::GraphicsView ( VP1EventDisplaySceneView * v)
inline

Definition at line 48 of file VP1EventDisplaySceneView.h.

48: QGraphicsView(), m_view(v) { }
VP1EventDisplaySceneView * m_view

Member Function Documentation

◆ wheelEvent()

void GraphicsView::wheelEvent ( QWheelEvent * e)
protected

Definition at line 28 of file VP1EventDisplaySceneView.cxx.

29{
30 if (e->modifiers() & Qt::ControlModifier) {
31 if (e->angleDelta().y() > 0)
32 m_view->zoomIn(6);
33 else
34 m_view->zoomOut(6);
35 e->accept();
36 } else {
37 QGraphicsView::wheelEvent(e);
38 }
39}

Member Data Documentation

◆ m_view

VP1EventDisplaySceneView* GraphicsView::m_view
private

Definition at line 54 of file VP1EventDisplaySceneView.h.


The documentation for this class was generated from the following files: