[vlc-commits] Qt: Rework Models.
Francois Cartegnie
git at videolan.org
Sun Aug 18 15:26:06 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul 31 19:46:41 2012 +0200| [ce837438f5a94bafbc1454ff7438c069859d3e76] | committer: Francois Cartegnie
Qt: Rework Models.
- Separate common methods into interface, allowing multiple
inheritance architecture (to use any implemented AbstractModel)
- Code factorization between PL/ML models (and PL/ML Items)
- Use proxy model for views and redirection to the PL/ML models.
Fixes filtering and also really make use of the current model (only the
PL Model was really used before, models were half switched).
- stop storing/serializing selection indexes
- ML Missing locks and bug fixes
- Move ML callback into event loop
- ML Items leaks fixes
- Code factorization
- Dead code removal
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce837438f5a94bafbc1454ff7438c069859d3e76
---
modules/gui/qt4/components/playlist/ml_item.cpp | 69 ++--
modules/gui/qt4/components/playlist/ml_item.hpp | 12 +-
modules/gui/qt4/components/playlist/ml_model.cpp | 372 ++++++++++----------
modules/gui/qt4/components/playlist/ml_model.hpp | 87 ++---
modules/gui/qt4/components/playlist/playlist.cpp | 28 +-
modules/gui/qt4/components/playlist/playlist.hpp | 9 +-
.../gui/qt4/components/playlist/playlist_item.cpp | 50 ++-
.../gui/qt4/components/playlist/playlist_item.hpp | 24 +-
.../gui/qt4/components/playlist/playlist_model.cpp | 307 +++++++---------
.../gui/qt4/components/playlist/playlist_model.hpp | 145 +++++---
.../gui/qt4/components/playlist/standardpanel.cpp | 148 ++++----
.../gui/qt4/components/playlist/standardpanel.hpp | 21 +-
modules/gui/qt4/components/playlist/views.cpp | 27 +-
modules/gui/qt4/components/playlist/views.hpp | 9 +-
modules/gui/qt4/components/playlist/vlc_model.cpp | 125 ++++++-
modules/gui/qt4/components/playlist/vlc_model.hpp | 147 +++++---
modules/gui/qt4/util/pictureflow.cpp | 24 +-
modules/gui/qt4/util/pictureflow.hpp | 2 +-
18 files changed, 909 insertions(+), 697 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=ce837438f5a94bafbc1454ff7438c069859d3e76
More information about the vlc-commits
mailing list