From da30a02976792a07c72e8be01aebde019a6a09d5 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Nov 2010 12:28:34 +0100 Subject: Implemented dialog for showing movies without covers Implemented a new dialog to show movies without covers. The view is a QTreeView with another model. While working on the model several shortcomings of SmTreeModel were resolved. findValue() now takes another argument to indicate the column the returned QModelIndex() should represent. Also, itemAt() was promoted from private to protected. It's quite useful for derived classes. --- seriestreemodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'seriestreemodel.h') diff --git a/seriestreemodel.h b/seriestreemodel.h index 63820ec..e26e49b 100644 --- a/seriestreemodel.h +++ b/seriestreemodel.h @@ -35,7 +35,7 @@ class SeriesTreeModel : public SmTreeModel { QList childrenColumnList(const QModelIndex &parent, int column) const; //find - QModelIndex findValue(const QVariant &value, const QModelIndex &parent = QModelIndex(), int column = 0) const; + QModelIndex findValue(const QVariant &value, const QModelIndex &parent = QModelIndex(), int searchColumn = 0, int indexColumn = -1) const; QFileInfoList findFiles(const QModelIndex &where) const; QFileInfoList findMovies(const QModelIndexList &from) const; QFileInfoList findSortedMovies(const QModelIndex &from) const; -- cgit v1.2.3-70-g09d2