On Nov 22, 2007 2:22 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 22.11.07 13:54:58, Alexandre Badez wrote:<br>> By the way, is there a better than re implement the complete paint method ?<br>> I mean, I just want to change the color of the line according to the "type"
<br>> of the node (but not in every view).<br><br></div>Sure, either let the model provide the color or change the palette in<br>the styleoptions you get and let QItemDelegate::paint() do the rest with<br>the changed style option.
<br><br>Andreas<br><font color="#888888"><br>--<br>A gift of a flower will soon be made to you.<br></font><div><div></div><div class="Wj3C7c">_______________________________________________<br>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">
PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></div></div></blockquote></div><br>The "problem" if it's the model who change the color, every view will be impact... and that's no really what I want.
<br>And modified the styleoptions, is neither what I want, because it will impact everything...<br><br>So I think I have to change it...<br><br>Thanks everybody.<br clear="all"><br>-- <br>Alex