Skip to content

Adapt all QML to use JS functions with formal parameters#81

Merged
FlorentRevest merged 1 commit intoAsteroidOS:masterfrom
PureTryOut:js-functions-with-parameters
Mar 20, 2026
Merged

Adapt all QML to use JS functions with formal parameters#81
FlorentRevest merged 1 commit intoAsteroidOS:masterfrom
PureTryOut:js-functions-with-parameters

Conversation

@PureTryOut
Copy link
Copy Markdown
Contributor

Fixes runtime warnings such as:
qt.qml.context: qrc:/org/asteroid/controls/qml/BorderGestureArea.qml:160:5 Parameter "mouse" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.

As an alternative the following also would work:
function onPressed(mouse) { ... }

Separated from #53 so it doesn't block or is blocked by other things.

Fixes runtime warnings such as:
  qt.qml.context: qrc:/org/asteroid/controls/qml/BorderGestureArea.qml:160:5 Parameter "mouse" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead.

As an alternative the following also would work:
  function onPressed(mouse) { ... }
@FlorentRevest FlorentRevest merged commit fa6e61c into AsteroidOS:master Mar 20, 2026
@PureTryOut PureTryOut deleted the js-functions-with-parameters branch March 21, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants