]> git.saurik.com Git - wxWidgets.git/commit
Create model and column in wxDataViewTreeCtrl::Create(), not ctor.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Oct 2009 21:41:44 +0000 (21:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Oct 2009 21:41:44 +0000 (21:41 +0000)
commit43c64cc6c9f7699c4a63e3fb191a7a90c25f0bab
tree851ad9a99c6531b9ae2efac0c4376fd7d25afa88
parentbf68a18d3c56bc72b8baa6c2ddeeba4fcaac1426
Create model and column in wxDataViewTreeCtrl::Create(), not ctor.

Old code created the tree model and its unique built-in column only in
wxDataViewTreeCtrl ctor but not in Create(), meaning that the behaviour was
very different depending on whether you used base class ctor call or Create()
in a derived class. This was confusing and completely inconsistent with wx API
in which using the default ctor and Create() is supposed to always have
exactly the same effect as using non-default ctor so change this to create the
model in Create() so that it's always done.

Slightly update the documentation and also add wxDataViewTreeCtrl::Init() for
consistency.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/dataview.h
interface/wx/dataview.h
src/common/datavcmn.cpp