1 suggestion
Optional improvements
[suggestion] · Onboarding defaults and mocks disagree about model availability
Shared onboarding defaults select an accessor that is null in preinit, while the mocks return a model; no current production caller relies on that default because the model is explicitly forwarded.
Location: qml/applicationmodels.h:59 (head).
Details and suggested fix
Both typed accessors read the optionsModel context key, but cast it to unrelated QObject subclasses. Preinit installs an OnboardingOptionsModel, so ApplicationModels.optionsModel cannot supply the new shared settingsModel defaults there. Production onboarding remains correctly wired through preinit.qml and the wizard's explicit forwarding. However, MockApplicationModels returns the same MockOptionsModel from both accessors, and the onboarding fixtures instantiate the wizard and pages without injecting settingsModel. Those fixtures therefore exercise a fallback unavailable in production and would not detect an omitted forwarding binding. Make settingsModel required on components shared with preinit, and update the onboarding fixtures to inject it under a configuration that preserves production's accessor availability. This removes the unusable defaults and makes the tests enforce the existing injection contract.