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

Revert "misc: fix svg rendering when not scaled"

This reverts commit e0072e3c.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Iaac729d416ceb0cba696c7d5de9b274c3d3cee16
parent 5f127033
Branches
Tags
No related merge requests found
...@@ -61,13 +61,9 @@ Image { ...@@ -61,13 +61,9 @@ Image {
} }
function setSourceSize() { function setSourceSize() {
if (ScreenInfo.getDevicePixelRatio() === 1.0)
return
if (isSvg) {
sourceSize = undefined sourceSize = undefined
if (isSvg)
sourceSize = Qt.size(width, height) sourceSize = Qt.size(width, height)
} else
sourceSize = undefined
} }
Connections { Connections {
......
...@@ -50,10 +50,6 @@ public: ...@@ -50,10 +50,6 @@ public:
Q_EMIT devicePixelRatioChanged(); Q_EMIT devicePixelRatioChanged();
} }
} }
Q_INVOKABLE double getDevicePixelRatio()
{
return devicePixelRatio_;
}
Q_SIGNALS: Q_SIGNALS:
void devicePixelRatioChanged(); void devicePixelRatioChanged();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment