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

Method ScrollIndicator

customScrollContainer.cpp:333–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333ScrollIndicator::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
347void ScrollIndicator::paintEvent(QPaintEvent *event){
348 QPainter painter(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected