[vlc-commits] Qt: PLModel: Use Model Indexes instead of PLItem references for external
Francois Cartegnie
git at videolan.org
Thu Jul 19 14:23:22 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jul 15 13:48:04 2012 +0200| [856d5fe06916b7bdf63d3a5538cfb62f0dae6c1c] | committer: Francois Cartegnie
Qt: PLModel: Use Model Indexes instead of PLItem references for external
methods.
The model/view is broken as the internal PLItem elements are accessed
from outside the model.
We need to change calls to make use of Model Indexes, and then can move
away some methods that belongs to views.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=856d5fe06916b7bdf63d3a5538cfb62f0dae6c1c
---
modules/gui/qt4/components/playlist/playlist.cpp | 14 +-
.../gui/qt4/components/playlist/playlist_item.hpp | 7 +-
.../gui/qt4/components/playlist/playlist_model.cpp | 142 ++++++++++++--------
.../gui/qt4/components/playlist/playlist_model.hpp | 29 ++--
modules/gui/qt4/util/pictureflow.cpp | 4 +-
5 files changed, 115 insertions(+), 81 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=856d5fe06916b7bdf63d3a5538cfb62f0dae6c1c
More information about the vlc-commits
mailing list