Skip to content
Snippets Groups Projects
Commit e0072e3c authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: fix svg rendering when not scaled

Change-Id: Icf2aa37bd9f9ef3ba0845780504aaf680858c3bd
parent 7f28ac65
No related branches found
No related tags found
No related merge requests found
......@@ -61,11 +61,12 @@ Image {
}
function setSourceSize() {
if (ScreenInfo.getDevicePixelRatio() === 1.0)
return
if (isSvg) {
sourceSize = Qt.size(0, 0)
sourceSize = undefined
sourceSize = Qt.size(width, height)
}
else
} else
sourceSize = undefined
}
......
......@@ -50,6 +50,10 @@ public:
Q_EMIT devicePixelRatioChanged();
}
}
Q_INVOKABLE double getDevicePixelRatio()
{
return devicePixelRatio_;
}
Q_SIGNALS:
void devicePixelRatioChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment