# fix\(qml\): resolve QML hardening warnings \(\#486\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/502e21182872f716f726bbd0c79f1bd738c2ac89)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 502e21182872f716f726bbd0c79f1bd738c2ac89

Requested commit: 502e21182872f716f726bbd0c79f1bd738c2ac89

Commit: 502e21182872f716f726bbd0c79f1bd738c2ac89

Tree: f494c720784759b416804affd3824d05c70b2cbf

Author: Simone

Committer: GitHub

## Message

```
fix(qml): resolve QML hardening warnings (#486)

* fix(qml): resolve QML hardening warnings

- Replace var with const/let in PanelText.qml, ProviderCostDetails.qml,
  ProviderNotificationText.qml, configAiInsights.qml, WidgetUpdateController.qml
- Fix renamed-type warnings in SessionsView.qml by using Components. prefix
- Fix missing-property warnings in test files (PanelMatrixCapture.qml,
  SettingsPreview.qml) by removing non-existent property access and
  wrapping dynamic property assignment in Qt.callLater

All QML hardening checks and tests now pass.

* fix(smoke): keep capture switches and synchronous diagnostics path

CompactRepresentation does declare animationsEnabled and interactive, so
the panel matrix must keep turning them off; reach them through the
untyped compactPanelItem property so qmllint has no QObject member to
reject. Set the Diagnostics cfg_commandPath synchronously through the
untyped page property again: deferring it with Qt.callLater let Capture
observe preview.ready before the path changed.

---------

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
```

## Parents

- [08710883e0a349e52266f4f4bb2284a0ef16b7fb](https://git.cafe/lucenx/codexbar-plasma/commit/08710883e0a349e52266f4f4bb2284a0ef16b7fb?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/502e21182872f716f726bbd0c79f1bd738c2ac89?format=markdown)
