MyGraphicsView
| 18 | |
| 19 | //MyGraphicsView |
| 20 | MyGraphicsView::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 | |
| 36 | void MyGraphicsView::nextAni(){ |
| 37 | if(aniQueue.size() > 0){ |
nothing calls this directly
no outgoing calls
no test coverage detected