Skip to content

Fix using caption and type for all models

James Graham requested to merge work/nvrwhere/fix_caption_type_all_models into master

Currently the code to check the type or caption outside the delegate only works for models that are some sort of list underneath. For a QAbstractListModel derived c++ model using square brackets to access members doesn't work.

This patch adds type and caption as properties of the video and image delegates then AlbumMaximiseComponent accesses them by calling view.currentItem.type/caption

Merge request reports