status-desktop/ui/shared/SVGImage.qml

14 lines
277 B
QML
Raw Normal View History

2020-06-23 18:59:16 +00:00
import QtQuick 2.13
// Source: https://forum.qt.io/topic/52161/properly-scaling-svg-images/6
Image {
sourceSize: Qt.size(hiddenImg.sourceSize.width * 2, hiddenImg.sourceSize.height * 2)
2020-06-23 18:59:16 +00:00
Image {
id: hiddenImg
source: parent.source
width: 0
height: 0
}
}