Size images/videos by timeline width
This commit is contained in:
parent
d90038cf20
commit
8ebef4eed2
6 changed files with 46 additions and 12 deletions
|
|
@ -38,7 +38,8 @@ MxcImageResponse::run()
|
|||
auto data = QByteArray(res.data(), res.size());
|
||||
cache::client()->saveImage(fileName, data);
|
||||
m_image.loadFromData(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);
|
||||
|
||||
emit finished();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue