summaryrefslogtreecommitdiffstats
path: root/coveritem.h
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-21 13:48:56 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-21 13:48:56 +0000
commit84ed109c159dcbd0c9395717d54599e902060b26 (patch)
tree01bb4a4d6148ec46952a1cdd5e923bb7b642305e /coveritem.h
parentec3418479b28ca8e162f84d76c2eed78c27a114c (diff)
downloadSheMov-84ed109c159dcbd0c9395717d54599e902060b26.tar.gz
SheMov-84ed109c159dcbd0c9395717d54599e902060b26.tar.bz2
SheMov-84ed109c159dcbd0c9395717d54599e902060b26.zip
-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
Diffstat (limited to 'coveritem.h')
-rw-r--r--coveritem.h9
1 files changed, 5 insertions, 4 deletions
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 <QMetaType>
+
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)