| 209 | } |
| 210 | |
| 211 | void ScrollAreaCustom::wheelEvent(QWheelEvent *event){ |
| 212 | if(container->y() > 0 || container->y() + container->height() < this->height()) |
| 213 | return; |
| 214 | curSpd += 5; |
| 215 | bool newDirection = event->angleDelta().y() > 0; |
| 216 | if(newDirection != scrollDown) |
| 217 | curSpd = 5; |
| 218 | if(curSpd > MAXSPEED) |
| 219 | curSpd = MAXSPEED; |
| 220 | scrollDown = newDirection; |
| 221 | if(!rfrshView->isActive()) |
| 222 | rfrshView->start(30); |
| 223 | update(); |
| 224 | } |
| 225 | |
| 226 | ScrollListContainer::ScrollListContainer(QWidget *parent) : QWidget(parent){} |
| 227 |
nothing calls this directly
no outgoing calls
no test coverage detected