From 84ed109c159dcbd0c9395717d54599e902060b26 Mon Sep 17 00:00:00 2001 From: am Date: Tue, 21 Jul 2009 13:48:56 +0000 Subject: -Made CoverItem behave consistent -get QModelIndex from MovieModel by movieId -ArchiveView: added delegates for dvd and size, MovieItem now returns size as int -Finished EditArchiveItemDialog -Reverted covereditor, it became too convoluted git-svn-id: file:///var/svn/repos2/shemov/trunk@393 f440f766-f032-0410-8965-dc7d17de2ca0 --- moviemodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'moviemodel.h') diff --git a/moviemodel.h b/moviemodel.h index d2cbe50..6367583 100644 --- a/moviemodel.h +++ b/moviemodel.h @@ -24,6 +24,7 @@ class MovieModel : public QAbstractItemModel { MovieModel(QObject *parent = 0); ~MovieModel(); QModelIndex index(int row, int column, const QModelIndex &parent) const; + QModelIndex index(int movieId, int column = 0) const; QModelIndex parent(const QModelIndex &) const { return QModelIndex(); }; int columnCount(const QModelIndex &) const { return MovieItem::NumRows; }; int rowCount(const QModelIndex &) const { return mItems.size(); }; -- cgit v1.2.3-70-g09d2