From 1ec8aa7048416a3267ee3ff654d078739644296c Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 22 May 2010 16:53:14 +0200 Subject: 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. --- archivefilewidget.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'archivefilewidget.h') 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 actorIds() const; int genreId() const; -- cgit v1.2.3-70-g09d2