MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / EffectFrame

Method EffectFrame

src/effect/effectframe.cpp:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226EffectFrame::EffectFrame(EffectFrameStyle style, bool staticSize, QPoint position, Qt::Alignment alignment)
227 : m_view(new EffectFrameQuickScene(style, staticSize, position, alignment))
228{
229 connect(m_view, &OffscreenQuickScene::repaintNeeded, this, [this] {
230 effects->addRepaint(geometry());
231 });
232 connect(m_view, &OffscreenQuickScene::geometryChanged, this, [](const QRect &oldGeometry, const QRect &newGeometry) {
233 effects->addRepaint(oldGeometry);
234 effects->addRepaint(newGeometry);
235 });
236}
237
238EffectFrame::~EffectFrame()
239{

Callers

nothing calls this directly

Calls 1

addRepaintMethod · 0.45

Tested by

no test coverage detected