sofa-framework / SofaQtQuick

6 stars 10 forks source link

REFACTORING SofaSceneListModel to SofaSceneItemModel #17

Open damienmarchal opened 6 years ago

damienmarchal commented 6 years ago

The rational behind is that the list model is not supposed to be for tree like structure and visualization aspect are implemented in the model itself instead of using proxies as in: http://doc.qt.io/archives/qt-4.8/qsortfilterproxymodel.html#details

damienmarchal commented 6 years ago

The refactoring is on its way, the model seems ok. The only drawback is that it requires change in Node.h to allow begin/end logic to change signalling. It is unclear now for me what to do (keep the change in Node.h) or use a different strategy.