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>
Showing
- modules/gui/qt/Makefile.am 3 additions, 0 deletionsmodules/gui/qt/Makefile.am
- modules/gui/qt/components/selectable_list_model.cpp 119 additions, 0 deletionsmodules/gui/qt/components/selectable_list_model.cpp
- modules/gui/qt/components/selectable_list_model.hpp 52 additions, 0 deletionsmodules/gui/qt/components/selectable_list_model.hpp
Loading
Please register or sign in to comment