summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-06-07 14:53:35 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-06-07 14:53:35 +0200
commite5a55ab1b9f258b973b4a0c3c48fa88a964c94a5 (patch)
tree688c1b8e5068ddca6323cc7eabe2e89e4d7f7cf3 /src
parentDownload boost from sourceforge (diff)
downloadnheko-e5a55ab1b9f258b973b4a0c3c48fa88a964c94a5.tar.xz
Smooth scaling for images
Fixes some issues with inline images.
Diffstat (limited to 'src')
-rw-r--r--src/MxcImageProvider.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp

index 8e67375d..a197e4aa 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp
@@ -17,7 +17,8 @@ MxcImageResponse::run() auto data = cache::image(fileName); if (!data.isNull()) { m_image = utils::readImage(&data); - m_image = m_image.scaled(m_requestedSize, Qt::KeepAspectRatio); + m_image = m_image.scaled( + m_requestedSize, Qt::KeepAspectRatio, Qt::SmoothTransformation); m_image.setText("mxc url", "mxc://" + m_id); if (!m_image.isNull()) {