Question about the design of the setting browser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about the design of the setting browser

Stéphane Ducasse
Hi alain

I was reading the settingbrowser code and I have a question:
why the settingbrowser inherits from MorphTreeModel.

Why it does not inherits from Object or Model and has different widgets
that may or not inherits from MorphTreeModel.

To me it fits better the composition.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Question about the design of the setting browser

Alain Plantec-3
Le 14/03/2011 21:44, Stéphane Ducasse a écrit :
> Hi alain
>
> I was reading the settingbrowser code and I have a question:
> why the settingbrowser inherits from MorphTreeModel.
>
> Why it does not inherits from Object or Model and has different widgets
> that may or not inherits from MorphTreeModel.
no particular reason behind
> To me it fits better the composition.
yes, it seems better for re-composition but with the price of more classes.

Alain
> Stef
>
>