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

Halla Rempt <ha...@valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/3d7b2e017 |hics/krita/commit/bdf06f651
                   |e49276064ceafce7932a7235954 |1a8c29a3988b021cedca0b23a0a
                   |1aad                        |74b7

--- Comment #8 from Halla Rempt <ha...@valdyas.org> ---
Git commit bdf06f6511a8c29a3988b021cedca0b23a0a74b7 by Halla Rempt.
Committed on 12/08/2022 at 05:39.
Pushed by rempt into branch 'master'.

Only access the clipboard when we really need it

* remove two superfluous sig/slot connections in KisClipboard.
These QClipboard modes are not relevant for Krita, and were
fired together with dataChanged, resulting in clipboardChanged
being called three times.
* remove the preview() method which was only used by the
custom image widget
* set the default w/h for the imagefromclipboard widget to 1,
so we don't need to retrieve the QImage from the clipboard just
to get the actual dimensions
* simplify KisClipboard::clipboardDataChanged so it doesn't need
to retrieve the qimage from the clipboard. This means that hasClip()
can be true because there are images on the qclipboard, so that needs
to be tested.

M  +3    -9    libs/ui/KisMainWindow.cpp
M  +3    -40   libs/ui/kis_clipboard.cc
M  +0    -3    libs/ui/kis_clipboard.h
M  +0    -1    libs/ui/widgets/kis_custom_image_widget.cc
M  +23   -9    libs/ui/widgets/kis_image_from_clipboard_widget.cpp
M  +4    -4    libs/ui/widgets/kis_image_from_clipboard_widget.h

https://invent.kde.org/graphics/krita/commit/bdf06f6511a8c29a3988b021cedca0b23a0a74b7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to