[showfoto] [Bug 163293] Only generate thumbnail when needed [patch]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[showfoto] [Bug 163293] Only generate thumbnail when needed [patch]

AMAN KAPOOR
https://bugs.kde.org/show_bug.cgi?id=163293

AMAN KAOOR <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #79928|0                           |1
        is obsolete|                            |

--- Comment #17 from AMAN KAOOR <[hidden email]> ---
Created attachment 79959
  --> https://bugs.kde.org/attachment.cgi?id=79959&action=edit
patch

Hi Gilles,

It was right that In my previous patch  ,the thumb-bar was not updated on
transformation of any of the images because I removed the slotGotThumbnail and
its connection from the thumbnailload thread, so it was not able to repaint the
changes in image, in the thumb-bar after the image was transformed.

So in this patch I removed the connection from the constructor, so that initial
loading and painting is done only by viewportPaintEvent, and not the
slotGotThumbnail item->repaint() function which is causing the extra painting
computation .I have transferred this connection to the void
ThumbBarView::invalidateThumb function , which is called only when we save the
transformed image. Because it is called by the item url ,so the item->repaint()
function is only called for the item which is transformed and the item is
repainted.

I am submitting the new patch obseleting the previous one. Please review it.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel