From 3240cad2718ead169a07219e2a65ae84328b4485 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 12 Jun 2010 10:15:04 +0200 Subject: Implemented SmTreeModel::parent Forgot to implement SmTreeModel::parent. Thus it was a pure abstract class and not instantiable. --- smtreemodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'smtreemodel.h') diff --git a/smtreemodel.h b/smtreemodel.h index 46f852f..698a2ce 100644 --- a/smtreemodel.h +++ b/smtreemodel.h @@ -23,8 +23,9 @@ class SmTreeModel : public QAbstractItemModel { int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; - // index and flags + // index, parent and flags QModelIndex index(int row, int column, const QModelIndex &parent) const; + QModelIndex parent(const QModelIndex &child) const; Qt::ItemFlags flags(const QModelIndex &index) const; // headers + data -- cgit v1.2.3-70-g09d2