VPTissue Reference Manual
SimShell::Gui::MyGraphicsView Class Reference

Scrollable QGraphicsView with zoom functionality. More...

#include <MyGraphicsView.h>

Inheritance diagram for SimShell::Gui::MyGraphicsView:
Inheritance graph
Collaboration diagram for SimShell::Gui::MyGraphicsView:
Collaboration graph

Public Member Functions

 MyGraphicsView (std::shared_ptr< QGraphicsScene > g, QWidget *parent=nullptr)
 
 MyGraphicsView (QWidget *parent=nullptr)
 

Protected Member Functions

void wheelEvent (QWheelEvent *event)
 

Detailed Description

Scrollable QGraphicsView with zoom functionality.

Also takes co-ownership of graphics scene.

Definition at line 33 of file MyGraphicsView.h.

Constructor & Destructor Documentation

SimShell::Gui::MyGraphicsView::MyGraphicsView ( std::shared_ptr< QGraphicsScene >  g,
QWidget parent = nullptr 
)
Parameters
gGraphics scene. Will take co-ownership.
parentParent widget.

Definition at line 30 of file MyGraphicsView.cpp.

SimShell::Gui::MyGraphicsView::MyGraphicsView ( QWidget parent = nullptr)
Parameters
parentParent widget.

Definition at line 36 of file MyGraphicsView.cpp.


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