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 /smtreemodel.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 'smtreemodel.h')
-rw-r--r-- | smtreemodel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smtreemodel.h b/smtreemodel.h index 6d89fb2..3eae432 100644 --- a/smtreemodel.h +++ b/smtreemodel.h @@ -46,9 +46,10 @@ class SmTreeModel : public QAbstractItemModel { bool removeRows(int row, int count, const QModelIndex &parent); bool addRow(const QList<QVariant> &data, const QModelIndex &parent); + protected: + SmTreeItem *itemAt(const QModelIndex &index) const; private: - SmTreeItem *itemAt(const QModelIndex &index) const; QStringList mHeaders; SmTreeItem *mRootItem; }; |