| 360 | } |
| 361 | |
| 362 | void 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 | |
| 375 | void ScrollIndicator::mousePressEvent(QMouseEvent *event){ |
| 376 | curColor = pressColor; |
nothing calls this directly
no outgoing calls
no test coverage detected