On 29/09/2008 20:29, Andre Poenitz wrote:
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.
No particular reason, copy&paste AFAIR... The only rule is to have a QObject parent for proper automatic deletion so I didn't bother...

Abdel.

Reply via email to