MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / ExpandAnimator

Method ExpandAnimator

3rdparty/WAF/Animation/Expand/ExpandAnimator.cpp:11–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11ExpandAnimator::ExpandAnimator(QWidget* _widgetForFill) :
12 AbstractAnimator(_widgetForFill),
13 m_decorator(new ExpandDecorator(_widgetForFill)),
14 m_animation(new QPropertyAnimation(m_decorator, "expandRect"))
15{
16 Q_ASSERT(_widgetForFill);
17
18 _widgetForFill->installEventFilter(this);
19
20 m_animation->setDuration(400);
21
22 m_decorator->hide();
23
24 connect(m_animation, &QPropertyAnimation::finished, [this] {
25 setAnimatedStopped();
26 if (isAnimatedBackward()) {
27 m_decorator->hide();
28 }
29 });
30}
31
32void ExpandAnimator::setExpandRect(const QRect& _rect)
33{

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
setDurationMethod · 0.80
hideMethod · 0.80

Tested by

no test coverage detected