-
Notifications
You must be signed in to change notification settings - Fork 0
[REFACTOR] Check usage of addContextProperty #131
Copy link
Copy link
Open
Labels
refactoringIt works, but the Code is at least suboptimalIt works, but the Code is at least suboptimal
Milestone
Description
Refactor Request
addContextProperty function is used to expose C++ Objects to QML.
As stated in the documentation of addContextProperty it has some drawbacks, like limiting the reusability.
Description of the proposed solution
Investigate how addContextProperty is used and check if there are other solutions.
Maybe the connected C++ classes via the mainlogic, like SaveFileHandler, Renderer and ItemHandler should be exposed as QML Objects and be used directly in QML? This would break the lib structure, but perhaps this is the right way to go here.
Additional context
No other context.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
refactoringIt works, but the Code is at least suboptimalIt works, but the Code is at least suboptimal