Polish the can example, take 2


- Fix the settings organization
- Use modern string literals
- Avoid repeated instantiations of QRegularExpression
- Streamline code

Pick-to: 6.4
Change-Id: Id8412d9d21e0969ef4ef4606ce0c024a8803b314
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
commitad4b1804ddc938c519efe7a393804145b084e5b5
parent101295aef757747490fb5533710d9e10bf303d19
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
committerFriedemann Kleint <Friedemann.Kleint@qt.io>
commit timeMon, 17 Oct 2022 13:45:53 +0200