Skip to content
Commit 3e31b9fc authored by Matej Starc's avatar Matej Starc
Browse files

Improve PageRow code



Clean up ``PageRow``'s code and make methods more strict. Add type checks, remove unnecessary identifiers, and add strict checks when a parameter is a page/array of pages.

- The rules are:
 - a page must always be an instance of QtQuick Templates Page.
 - a page must not be already present in the view.
 - either the array size of pages and properties must match, or properties parameter must be empty or set to null.
 - if any of the above rules are broken, it will generate a trace and immediately return null.

Signed-off-by: Matej Starc's avatarMatej Starc <matej.starc@protonmail.com>
parent 56d468b8
Pipeline #479876 passed with stage
in 2 minutes and 35 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment