| 331 | } |
| 332 | |
| 333 | ScrollIndicator::ScrollIndicator(QWidget *parent) : QWidget(parent) |
| 334 | { |
| 335 | this->resize(defaultWidth, 0); |
| 336 | hovTimer = new QTimer(this); |
| 337 | hovTimer->setSingleShot(true); |
| 338 | aniPause = new QTimer(this); |
| 339 | aniPause->setSingleShot(true); |
| 340 | QObject::connect(hovTimer, SIGNAL(timeout()), this, SLOT(setHoverActive())); |
| 341 | this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
| 342 | this->curColor = defaultColor; |
| 343 | |
| 344 | this->setMouseTracking(true); |
| 345 | } |
| 346 | |
| 347 | void ScrollIndicator::paintEvent(QPaintEvent *event){ |
| 348 | QPainter painter(this); |
nothing calls this directly
no outgoing calls
no test coverage detected