It is a QTreeWidget that is created in the createWidgets function in pqNamedObject.cxx. The spacing is occurring because the final row in the layout is given a stretch factor. This is useful if you only have widgets that do not stretch well (such as a line edit). I have added a flag that is checked before applying this stretch factor to the last row. I have only changed the COMPOSITE_TREE widget where I set the stretch to 2 and then unset the flag. Below is the patch:<br>
<br>Index: Components/pqNamedWidgets.cxx<br>===================================================================<br>RCS file: /cvsroot/ParaView3/ParaView3/Qt/Components/pqNamedWidgets.cxx,v<br>retrieving revision 1.52<br>diff -r1.52 pqNamedWidgets.cxx<br>
825a826,828<br>> // make the final expand unless this flag is reversed<br>> bool expandLastRow = true;<br>><br>1359a1363,1364<br>> panelLayout->setRowStretch(rowCount, 2);<br>> expandLastRow = false;<br>
1364c1369,1372<br>< panelLayout->setRowStretch(rowCount, 1);<br>---<br>> if (expandLastRow)<br>> {<br>> panelLayout->setRowStretch(rowCount, 1);<br>> }<br><br>Regards,<br>Paul<br><br><div class="gmail_quote">
2009/3/23 Paul Edwards <span dir="ltr"><<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've tried modifying sizeHint (adding extra number of rows for default and just returning a huge QSize) for pqTreeWidget. I've also tried setting the sizePolicy to MinimumExpanding but still no luck. It doesn't seem to be effecting the size at all. Any ideas?<br>
<br>Thanks,<br>Paul<br><br><br><div class="gmail_quote">2009/3/23 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span><div><div></div>
<div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I am not mistaken, that happening because we use a custom subclass,<br>
pqTreeWidget for the tree. I'd look at pqTreeWidget and it's<br>
size-related code sections.<br>
<br>
<br>
<br>
2009/3/23 Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com" target="_blank">paul.m.edwards@gmail.com</a>>:<br>
<div><div></div><div>> Hello,<br>
><br>
> I would like make the tree view use all the available space in the<br>
> properties tab for the Extact Block filter. At the moment this is split<br>
> 50/50 with the checkbox. Is there an easy way to do this? Or could someone<br>
> point me in the direction for the file that I will need to be editing in<br>
> order to change this?<br>
><br>
> Thanks in advance,<br>
> Paul<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div></div></div><br>
</blockquote></div><br>