qt: introduce SelectableListModel
commit9611235e4dbf9e10f557f01028898bff991ec9c6
authorRomain Vimont <rom1v@videolabs.io>
Tue, 9 Jul 2019 16:30:26 +0000 (9 18:30 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 16 Jul 2019 12:03:46 +0000 (16 14:03 +0200)
tree1e5df181a946d815f66a4e4d181534e849ed1cd8
parent22ec1d1bde1e6e8abe455ab9478e138ba777e0ab
qt: introduce SelectableListModel

Add a QAbstractListModel subclass which maintain a selection state. This
will avoid to manage selection in an additional layer (DelegateModel) in
Qml.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt/Makefile.am
modules/gui/qt/components/selectable_list_model.cpp [new file with mode: 0644]
modules/gui/qt/components/selectable_list_model.hpp [new file with mode: 0644]