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

Qian <oldk1...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oldk1...@gmail.com

--- Comment #13 from Qian <oldk1...@gmail.com> ---
After my patch in https://bugs.kde.org/show_bug.cgi?id=434049 is applied,
together with this following patch, we can have "fit to window" to always fit
to window, instead of current behavior.

Developers, this is 2021 now, where 4K screen is more and more popular.  So
viewing a 1 million pixel picture on a 8 million pixel screen is not that
uncommon.  Also, zoom such pictures on this hiDPI screen is not blurry at all.

The old behavior can be achieved via a manually set fixed 100% zoom level.

--- a/core/libs/widgets/graphicsview/previewlayout.cpp
+++ b/core/libs/widgets/graphicsview/previewlayout.cpp
@@ -259,7 +259,7 @@ void SinglePhotoPreviewLayout::fitToWindow()

     d->isFitToWindow = true;

-    d->zoomSettings()->fitToSize(d->frameSize(),
ImageZoomSettings::OnlyScaleDown);
+    d->zoomSettings()->fitToSize(d->frameSize(),
ImageZoomSettings::AlwaysFit);
     d->item->sizeHasChanged();
     updateLayout();
     d->item->update();

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

Reply via email to