MCPcopy Create free account
hub / github.com/YACReader/yacreader / BusyIndicator

Method BusyIndicator

custom_widgets/yacreader_busy_widget.cpp:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23BusyIndicator::BusyIndicator(QWidget *parent, int size)
24 : QWidget(parent),
25 startAngle(0),
26 m_style(StyleArc),
27 size(size)
28{
29 QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Fixed);
30 policy.setHeightForWidth(true);
31 setSizePolicy(policy);
32
33 fillColor = palette().color(QPalette::WindowText);
34
35 timer.setInterval(16);
36 connect(&timer, &QTimer::timeout, this, &BusyIndicator::rotate);
37 timer.start();
38}
39
40void BusyIndicator::rotate()
41{

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected