<div class="gmail_quote">On Sat, Nov 6, 2010 at 18:48, Marcel Wiesweg <span dir="ltr"><<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
</div>How do you trigger the painting of the border at all?<br>
mouse over -> find related images -> pass a special flag to the delegate when<br>
painting? The view will know the left and right edge of this "selection"<br>
(which need not be contiguous btw)<br></blockquote><div><br></div><div>Currently it's not on mouse over, but just on click, so you select the image, then it checks if it is in current relation (QList added to ImageDelegate), if yes, then just paint part of the border, if not, the get the relation cloud from DB, turn it into simple QList<qlonglong>, store it, paint the border. I can get an index for sibling and then get its id with ImageInfo::getImageId(index) and see if it is in the relation, but that's just a sibling in the model, not in the view, as you said, they sometimes aren't continuous. I suppose I could get even the top/bottom siblings by moving the index by currentColumn+columnsInRow, not sure what that will do though. I'll play with it a little and see what I'll come up with.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> For LR, look this page :<br>
><br>
> <a href="http://dpexperience.com/2010/03/05/un-clutter-your-library-with-lightrooms-" target="_blank">http://dpexperience.com/2010/03/05/un-clutter-your-library-with-lightrooms-</a><br>
> stacks/<br>
<br>
</div>The "icon" solution would be an alternative to the current stack. Advantage:<br>
It does not disturb the visual appearance as much; it provides a space to<br>
click on. But not on the thumbnail, preferably below in the information area?<br>
Or in a bottom corner? and not larger than two characters in the smallest<br>
readable font.<br></blockquote><div><br></div><div>Agreed. Maybe even the top-left corner? But definitely not over the thumbnail.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div class="im"><br>
<br>
> I can't seem to find the color with which the main rectangle is painted, so<br>
> I used Qt::gray for the while. But they will definitely match at the end.<br>
<br>
</div>Have a look at ThemeEngine. The pixmap is prerendered there, there's a border<br>
color. It's probably not publicly available atm, but could.<br></blockquote><div><br></div><div>Ok, great, thanks!</div><div><br></div><div>Marty</div></div>