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

Method bounceBack

customScrollContainer.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void ScrollAreaCustom::bounceBack(){
130 rfrshView->stop();
131 getCord->stop();
132 bounce->setDuration(500);
133 bounce->setStartValue(container->pos());
134 if(container->y() > 0)
135 bounce->setEndValue(QPoint(container->x(), 0));
136 else
137 bounce->setEndValue(QPoint(container->x(), this->height() - container->height()));
138 bounce->setEasingCurve(QEasingCurve::OutQuad);
139 bounce->start();
140}
141
142void ScrollAreaCustom::scrollContainer(){
143 //scroll

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected