MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / MyGraphicsView

Method MyGraphicsView

graph_view.cpp:20–34  ·  view source on GitHub ↗

MyGraphicsView

Source from the content-addressed store, hash-verified

18
19//MyGraphicsView
20MyGraphicsView::MyGraphicsView(int _type, QWidget *parent) :
21 QGraphicsView(parent),
22 type(_type){
23 this->setMouseTracking(true);
24 this->setBackgroundBrush(Qt::transparent);
25 myGraphicsScene = new QGraphicsScene();
26 this->setScene(myGraphicsScene);
27 this->setRenderHint(QPainter::Antialiasing);
28 this->setCursor(Qt::CrossCursor);
29 this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
30 this->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
31
32 setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
33 setResizeAnchor(QGraphicsView::AnchorUnderMouse);
34}
35
36void MyGraphicsView::nextAni(){
37 if(aniQueue.size() > 0){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected