[Digikam-devel] Re: Versioning marks

Martin Klapetek martin.klapetek at gmail.com
Sat Nov 6 18:48:05 GMT 2010


On Sat, Nov 6, 2010 at 18:48, Marcel Wiesweg <marcel.wiesweg at gmx.de> wrote:

>
> How do you trigger the painting of the border at all?
> mouse over -> find related images -> pass a special flag to the delegate
> when
> painting? The view will know the left and right edge of this "selection"
> (which need not be contiguous btw)
>

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.


> > For LR, look this page :
> >
> >
> http://dpexperience.com/2010/03/05/un-clutter-your-library-with-lightrooms-
> > stacks/
>
> The "icon" solution would be an alternative to the current stack.
> Advantage:
> It does not disturb the visual appearance as much; it provides a space to
> click on. But not on the thumbnail, preferably below in the information
> area?
> Or in a bottom corner? and not larger than two characters in the smallest
> readable font.
>

Agreed. Maybe even the top-left corner? But definitely not over the
thumbnail.


>
>
> > I can't seem to find the color with which the main rectangle is painted,
> so
> > I used Qt::gray for the while. But they will definitely match at the end.
>
> Have a look at ThemeEngine. The pixmap is prerendered there, there's a
> border
> color. It's probably not publicly available atm, but could.
>

Ok, great, thanks!

Marty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101106/eac99892/attachment.html>


More information about the Digikam-devel mailing list