| 127 | } |
| 128 | |
| 129 | void 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 | |
| 142 | void ScrollAreaCustom::scrollContainer(){ |
| 143 | //scroll |
nothing calls this directly
no outgoing calls
no test coverage detected