Gunnar Sletta wrote:
> setProperty sets both dynamic properties (non-setX/x()) and normal 
> properties, so I feel the name is correct. The point is maybe that 
> there are no examples on this and the there could be better 
> documentation?
Examples and documentation are always good.

I can see that using setProperty for both dynamic and normal properties 
may be appealing - however, I think that some people may wish to make it 
clear when they are using a dynamic property.  I suppose they could do 
that by naming - dynamic properties start with "dyn" (eg. dynMyProperty) 
- but having a setDynamicProperty method available seems preferable to me.

Maybe:

setProperty would work as it does now
setDynamicProperty would only work for dynamic properties
setProperty would actually call setDynamicProperty when a dynamic 
property gets set

And even a bigger Maybe:

setProperty would no longer need to be final with the above design

Todd.
\
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to