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. --- smtreemodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'smtreemodel.h') 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 &data, const QModelIndex &parent); + protected: + SmTreeItem *itemAt(const QModelIndex &index) const; private: - SmTreeItem *itemAt(const QModelIndex &index) const; QStringList mHeaders; SmTreeItem *mRootItem; }; -- cgit v1.2.3-70-g09d2