mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
Revert "misc: fix svg rendering when not scaled"
This reverts commit e0072e3cab
.
Reason for revert: <INSERT REASONING HERE>
Change-Id: Iaac729d416ceb0cba696c7d5de9b274c3d3cee16
This commit is contained in:
parent
5f12703302
commit
a26c2949a3
2 changed files with 3 additions and 11 deletions
|
@ -61,19 +61,15 @@ Image {
|
|||
}
|
||||
|
||||
function setSourceSize() {
|
||||
if (ScreenInfo.getDevicePixelRatio() === 1.0)
|
||||
return
|
||||
if (isSvg) {
|
||||
sourceSize = undefined
|
||||
sourceSize = undefined
|
||||
if (isSvg)
|
||||
sourceSize = Qt.size(width, height)
|
||||
} else
|
||||
sourceSize = undefined
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ScreenInfo
|
||||
|
||||
function onDevicePixelRatioChanged(){
|
||||
function onDevicePixelRatioChanged() {
|
||||
setSourceSize()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,10 +50,6 @@ public:
|
|||
Q_EMIT devicePixelRatioChanged();
|
||||
}
|
||||
}
|
||||
Q_INVOKABLE double getDevicePixelRatio()
|
||||
{
|
||||
return devicePixelRatio_;
|
||||
}
|
||||
|
||||
Q_SIGNALS:
|
||||
void devicePixelRatioChanged();
|
||||
|
|
Loading…
Add table
Reference in a new issue