← Back to team overview

yade-dev team mailing list archive

Re: qt4 tree view, new attempt

 

Janek Kozicki said:     (by the date of Tue, 13 Jul 2010 15:27:19 +0200)

> boost_basic_tree_oarchive.hpp save_override()

it just occurred to me, that it is possible to skip all that std::string
comparisons, and use a bool flags instead.

populate() function would set bools m_unfold_trail starting from itself upwards
through all the parent nodes, until parent==0.

then begin unfolding.

when unfolding is finished, then unset all those bool flags again.

The save_override function instead of comparing strings to detect if
it's on the right path to unfolding, it would only check the
m_unfold_trail bool.

It would speed up the process a bit. Functionally it will remain the
same.

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |



References