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

Method leaveEvent

customScrollContainer.cpp:362–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void ScrollIndicator::leaveEvent(QEvent *event){
363 hovTimer->stop();
364 curColor = defaultColor;
365 QPropertyAnimation* narrow = new QPropertyAnimation(this, "geometry");
366 narrow->setDuration(300);
367 narrow->setStartValue(QRect(this->x(), this->y(), this->width(), this->height()));
368 narrow->setEndValue(QRect(this->parentWidget()->width() - margin - defaultWidth, this->y(), defaultWidth, this->height()));
369 narrow->setEasingCurve(QEasingCurve::InOutQuad);
370 narrow->start(QAbstractAnimation::DeleteWhenStopped);
371 aniPause->start(300);
372 update();
373}
374
375void ScrollIndicator::mousePressEvent(QMouseEvent *event){
376 curColor = pressColor;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected