summaryrefslogtreecommitdiffstats
path: root/src/MxcImageProvider.cpp
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/MxcImageProvider.cpp
parent5e684a0a2f509f6b8b202e3955a022c4f5019dfa (diff)
Smooth scaling for images
Fixes some issues with inline images.
Diffstat (limited to 'src/MxcImageProvider.cpp')
-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()) {