MCPcopy Create free account
hub / github.com/Nitrux/maui-shell / DropShadowHelper

Method DropShadowHelper

casklib/src/code/server/caskserver.cpp:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47DropShadowHelper::DropShadowHelper(QObject *parent) : QObject(parent)
48 ,m_chrome(new CaskChrome(this))
49{
50 connect(m_chrome, &CaskChrome::dropShadowChanged, [this](int radius, QString id)
51 {
52 qDebug() << "DROP SHADOW CHANGED FOR" << id << radius << m_id;
53 if(id == m_id)
54 {
55 m_radius = radius;
56 Q_EMIT radiusChanged(m_radius);
57 }
58 });
59
60 connect(this, &DropShadowHelper::idChanged, [this](QString id)
61 {
62 m_radius = m_chrome->shadowFor(id);
63 Q_EMIT radiusChanged(m_radius);
64 });
65}
66
67QString DropShadowHelper::id() const
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected