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

Method mousePressEvent

customScrollContainer.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void ScrollAreaCustom::mousePressEvent(QMouseEvent *event){
45 if(container->height() > this->height()){
46 if(container->y() <= 0 && container->y() + container->height() >= this->height())
47 pressed = true;
48 lastY = event->pos().y();
49 }
50 getCord->stop();
51 rfrshView->stop();
52 curSpd = 0;
53 outOfEdge = false;
54 moveStored = 0;
55 nextMove = 1;
56}
57
58void ScrollAreaCustom::mouseMoveEvent(QMouseEvent *event){
59 setCursor(Qt::ArrowCursor);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected