summaryrefslogtreecommitdiffstats
path: root/archiveiteminfoedit.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-29 14:54:55 +0200
committerArno <am@disconnect.de>2010-05-29 15:12:41 +0200
commitca84789d9f288e39936a288c17eff247cb0f4a3f (patch)
treee4c70bd2eccd65378edc09fea0b8cdce13d2de3d /archiveiteminfoedit.h
parentd95e3f02d6615854547bded419de81395b28c2c5 (diff)
downloadSheMov-ca84789d9f288e39936a288c17eff247cb0f4a3f.tar.gz
SheMov-ca84789d9f288e39936a288c17eff247cb0f4a3f.tar.bz2
SheMov-ca84789d9f288e39936a288c17eff247cb0f4a3f.zip
Implement new ArchiveItemEditDialog
Use ArchiveItemEditDialog instead of EditArchiveItemDialog. The latter will soon be obsolete and removed. Terrible naming, though. This commit is not as atomic as I want it to be, but it can't be helped. I had to fix several bugs in ArchveItemInfoEdit and ArchiveItemCoverEdit on the way: -Fix layout of ArchiveItemCoverEdit -Make white background of warning label in ArchiveItemCoverEdit work -Add function to ArchiveItemInfoEdit to init the ActorModel and FileInfoModel -Add function to ArchiveItemInfoEdit to return selected actors Beware: The update button still does nothing!
Diffstat (limited to 'archiveiteminfoedit.h')
-rw-r--r--archiveiteminfoedit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiveiteminfoedit.h b/archiveiteminfoedit.h
index d06fa0a..98a1736 100644
--- a/archiveiteminfoedit.h
+++ b/archiveiteminfoedit.h
@@ -17,14 +17,16 @@ class QLineEdit;
class FileInfoModel;
class ActorWidget;
class ListModel;
-class MovieModel;
+class QModelIndex;
class ArchiveItemInfoEdit : public QWidget {
Q_OBJECT
public:
explicit ArchiveItemInfoEdit(QWidget *parent = 0);
+ void setup(const QModelIndex &idx);
const QString genre() const;
const QString title() const;
+ const QStringList actors() const;
int quality() const;
int dvd() const;
int series() const;
@@ -53,7 +55,6 @@ class ArchiveItemInfoEdit : public QWidget {
FileInfoModel *mInfoModel;
ListModel *mGenreModel;
ListModel *mActorModel;
- MovieModel *mMovieModel;
};
#endif