Skip to content
Commit 23990af0 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Simplify and optimize HourlyIncideModel

Don't store the layed out lines. This doesn't change the number of
times layoutLines method is called, since in any cases the ListView will
request only once each row/data combination (unless the model was reset
or dataChanged was called).

This has the advantage of simplifying the code a bit as we have less
state to manage.

To optimize the runtime instead, we reduce the refresh internal on non
displayed pages and use dataChanged instead of resetting the model
completely.

- Add Role suffix to roles
- use Q_UNREACHABLE
- assert on invalid index
- Simplify connect syntax
parent 919bb3a8
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