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

Method nextAni

graph_view.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void MyGraphicsView::nextAni(){
37 if(aniQueue.size() > 0){
38 QTimeLine *next = aniQueue.front();
39 curAni = next;
40 aniQueue.pop_front();
41 connect(next, &QTimeLine::finished, [=](){nextAni(); next->deleteLater();});
42 next->setDuration(next->duration() / speedRate);
43 next->start();
44 }
45 else{
46 onAni = false;
47 curAni = nullptr;
48 }
49}
50
51void MyGraphicsView::mousePressEvent(QMouseEvent *event){
52 if(event->button() == Qt::MiddleButton){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected