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

Method touchEdgesForAction

src/scripting/scriptedeffect.cpp:314–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314QList<int> ScriptedEffect::touchEdgesForAction(const QString &action) const
315{
316 QList<int> ret;
317 if (m_exclusiveCategory == QLatin1StringView("show-desktop") && action == QLatin1StringView("show-desktop")) {
318 for (const auto b : {ElectricTop, ElectricRight, ElectricBottom, ElectricLeft}) {
319 if (workspace()->screenEdges()->actionForTouchBorder(b) == ElectricActionShowDesktop) {
320 ret.append(b);
321 }
322 }
323 return ret;
324 } else {
325 if (!m_config) {
326 return ret;
327 }
328 return m_config->property(QStringLiteral("TouchBorderActivate") + action).value<QList<int>>();
329 }
330}
331
332QJSValue ScriptedEffect::animate_helper(const QJSValue &object, AnimationType animationType)
333{

Callers 1

main.jsFile · 0.80

Calls 5

workspaceFunction · 0.85
actionForTouchBorderMethod · 0.80
screenEdgesMethod · 0.80
appendMethod · 0.80
propertyMethod · 0.45

Tested by

no test coverage detected