On Fri, Sep 26, 2008 at 11:31:53AM +0200, Abdelrazak Younes wrote:
> Index: TocModel.cpp
> ===================================================================
> --- TocModel.cpp      (revision 26565)
> +++ TocModel.cpp      (working copy)
> @@ -45,9 +45,52 @@
>  }
>  
>  
> +TocModel::TocModel(QObject * parent)
> +     : model_(new TocTypeModel(parent)),
> +     sorted_model_(new QSortFilterProxyModel(parent)),
> +     is_sorted_(false), maxdepth_(0), mindepth_(0)

Out of curiosity: why do you use 'parent' and not 'this' as QObject parent?

It does not really matter in this case, but looks a bit unusual.

Andre'

Reply via email to