| 312 | } |
| 313 | |
| 314 | QList<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 | |
| 332 | QJSValue ScriptedEffect::animate_helper(const QJSValue &object, AnimationType animationType) |
| 333 | { |
no test coverage detected