moment/src/qml/Base/HIcon.qml

15 lines
309 B
QML
Raw Normal View History

import QtQuick 2.12
HImage {
property string svgName: ""
property int dimension: 20
source:
svgName ?
("../../icons/" + theme.preferredIconPack + "/" + svgName + ".svg") :
""
sourceSize.width: svgName ? dimension : 0
sourceSize.height: svgName ? dimension : 0
}