diff --git a/Model-View.md b/Model-View.md index 767c40b..33df5c6 100644 --- a/Model-View.md +++ b/Model-View.md @@ -12,5 +12,7 @@ You can get quite good results with just a view and a model. In this case the de # Ways to seperate formatting from the model -- We can use UserRoles to allow model to return what kind of data an item is (sometimes this can be deduced from the type stored in the variant but sometimes you might need more). +- We can use UserRoles to allow model to return what kind of data an item is (sometimes this can be deduced from the type stored in the variant but sometimes you might need more). Then a custom delegate could use that information to decide on the formatting. - We can go crazy with custom delegates and make sure the view is using the right delegate but that would mean that the view needs to be initialized with the right delegates and this might need to be updated when the model is changed. + +The first method seems to be more flexible as it means we can probably use the same delegate everywhere so setting up a view correctly will still be easy. In special cases we can still use a more specific delegate. \ No newline at end of file