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 --- coveritem.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'coveritem.h') diff --git a/coveritem.h b/coveritem.h index 0abccfa..a70de74 100644 --- a/coveritem.h +++ b/coveritem.h @@ -8,28 +8,29 @@ #ifndef COVERITEM_H #define COVERITEM_H +#include + class QString; class CoverItem { public: CoverItem(); - CoverItem(const QString &filename, const QString &type, const QString &md5); + CoverItem(const QString &fullPath, const QString &type, const QString &md5); ~CoverItem() {}; const QString fileName() const { return mFilename; }; const QString fullPath() const { return mFullPath; }; const QString type() const { return mType; }; const QString md5() const { return mMd5; }; - void setFileName(const QString &filename); void setType(const QString &type) { mType = type; }; void setMd5(const QString &md5); void setFullPath(const QString &fullPath); private: - void setPath(); + void setFileName(); + QString mFullPath; QString mFilename; QString mType; QString mMd5; - QString mFullPath; }; Q_DECLARE_METATYPE(CoverItem) -- cgit v1.2.3-70-g09d2