diff options
author | Arno <am@disconnect.de> | 2010-11-27 12:28:34 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-11-27 12:28:34 +0100 |
commit | da30a02976792a07c72e8be01aebde019a6a09d5 (patch) | |
tree | 7643cddb956a258eea9aeda2990313fd6fa92d32 /seriestreemodel.h | |
parent | 0f3f7598e4a3ee58c330cc7424cf89ea3e692da0 (diff) | |
download | SheMov-da30a02976792a07c72e8be01aebde019a6a09d5.tar.gz SheMov-da30a02976792a07c72e8be01aebde019a6a09d5.tar.bz2 SheMov-da30a02976792a07c72e8be01aebde019a6a09d5.zip |
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.
Diffstat (limited to 'seriestreemodel.h')
-rw-r--r-- | seriestreemodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<QVariant> 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; |