[Digikam-devel] [digikam] [Bug 361047] Wishlist: make grouped images more prominently visible [MOCKUP]

via KDE Bugzilla bugzilla_noreply at kde.org
Mon Mar 28 17:18:02 BST 2016


https://bugs.kde.org/show_bug.cgi?id=361047

--- Comment #4 from caulier.gilles at gmail.com ---
Jens,

The thumb-view rendering do not use SVG like way to render thumbnail borders.
The GUI is hardcoded in source code using Qt5 API. It's not very complicated in
fact. Dolphin and Gwenview do the same as i know.

If you want to take a look in source code, the frame around thumb image for all
icon view (Album GUI, LT, Import tool) is coded here :

https://quickgit.kde.org/?p=digikam.git&a=blob&h=63042b56f064c47195074fe2b66692091a87ff27&hb=16dc3a9b055931dbb84a2d29f3a0a901bebbc812&f=libs%2Fwidgets%2Fitemview%2Fditemdelegate.cpp

Line 90, the item view delegate which render thumb in customized way , call a
method named generateFuzzyRect(), in case of the border pixamp is not yet
stored in cache mecanism, to prevent hang up while icon view rendering. This
method is available here :

https://quickgit.kde.org/?p=digikam.git&a=blob&h=21d42a66a15e53d83056de0ded70108e747ba9b4&hb=16dc3a9b055931dbb84a2d29f3a0a901bebbc812&f=libs%2Fwidgets%2Fmainview%2Fthumbbardock.cpp

... at line 239. This is the hard coded implementation to draw fuzzy border
around thumb image, for each icon view item.

A new method named generateFuzzyRectForGroup() must be written here to render a
new border in case of grouped image. The switch between generateFuzzyRect()
generateFuzzyRectForGroup() will be done on top level class if the properties
hasGroup is turn on or off accordingly with DB properties.

Gilles

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list