MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / toggleAnim

Method toggleAnim

gui/src/smallOnOffSwitch.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void SmallOnOffSwitch::toggleAnim()
101{
102 auto *anim = new QPropertyAnimation(this, "offset");
103 anim->setDuration(120);
104 anim->setStartValue(m_offset);
105 anim->setEndValue(m_end_offset[isChecked()]());
106 anim->start(QAbstractAnimation::DeleteWhenStopped);
107}
108
109void SmallOnOffSwitch::resizeEvent(QResizeEvent *event)
110{

Callers

nothing calls this directly

Calls 3

setDurationMethod · 0.80
setStartValueMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected