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

Method wheelEvent

customScrollContainer.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void 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
226ScrollListContainer::ScrollListContainer(QWidget *parent) : QWidget(parent){}
227

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected