Please sign in to comment.
Make style model decoration icons size responsive
We hack the model a bit here, but as much as possible avoid bleeding view properties into the model API. So we use a QObject property ("icon_size") to specify icons sizes for the model to generate. This is set on instances of the model to indicate the required sizes for decorations in all views connected to the model, and allows the model to have size responsive icons. By using a QObject property we avoid having public GUI/view related API within the model, and mostly avoid view related properties contaminating the pure model, yet still have pixel-perfect symbol renders for the required view icon sizes.
- Loading branch information
Showing with 70 additions and 3 deletions.