summaryrefslogtreecommitdiffstats
path: root/archivefilewidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-22 16:53:14 +0200
committerArno <am@disconnect.de>2010-05-22 16:53:14 +0200
commit1ec8aa7048416a3267ee3ff654d078739644296c (patch)
tree8b36d12eaf8c244fca1c7afc83606a61a29bf111 /archivefilewidget.h
parent4ec6696968f7536e067e3a728ffdb423f985ef5a (diff)
downloadSheMov-1ec8aa7048416a3267ee3ff654d078739644296c.tar.gz
SheMov-1ec8aa7048416a3267ee3ff654d078739644296c.tar.bz2
SheMov-1ec8aa7048416a3267ee3ff654d078739644296c.zip
Use singletons for models
Created singletons for the ListModel* and MovieModel*. There should only be one of each and they were passed around quite a lot.
Diffstat (limited to 'archivefilewidget.h')
-rw-r--r--archivefilewidget.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/archivefilewidget.h b/archivefilewidget.h
index 64feb25..499ac45 100644
--- a/archivefilewidget.h
+++ b/archivefilewidget.h
@@ -27,11 +27,8 @@ class FileInfoModel;
class ArchiveFileWidget : public QWidget {
Q_OBJECT
public:
- ArchiveFileWidget(MovieModel *model = 0, QWidget *parent = 0, Qt::WindowFlags f = 0);
+ ArchiveFileWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
~ArchiveFileWidget() {};
- void setMovieModel(MovieModel *model);
- void setGenreModel(ListModel *model);
- void setActorsModel(ListModel *model);
void setFiles(const QStringList &files);
const QList<int> actorIds() const;
int genreId() const;