Closed uclaros closed 4 months ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
input/app/projectsmodel.h | 2 | 25.0% | ||
input/app/projectsproxymodel.cpp | 15 | 59.65% | ||
input/app/projectsmodel.cpp | 55 | 69.17% | ||
input/app/mmstyle.h | 61 | 2.01% | ||
<!-- | Total: | 133 | --> |
Totals | |
---|---|
Change from base Build 8663502430: | 0.3% |
Covered Lines: | 7635 |
Relevant Lines: | 12648 |
Fixes #3214
Change the way the active project is displayed on top of the list in Home tab into a less hacky one.
Now the ProjectsModel gets a
activeProjectId
property which if set, then one can use the newRoles::ProjectIsActiveProject
role on the model's contents.We then split the projects list into two sections based on this new role.
Roles::ProjectIsActiveProject
may be a bit misleading, as it might not return true on the active project, rather on the one passed intoProjectsModel::activeProjectId