2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
2019-04-27 11:16:45 +10:00
|
|
|
|
|
|
|
HImage {
|
2019-07-24 16:14:34 +10:00
|
|
|
property string svgName: ""
|
2019-04-27 11:16:45 +10:00
|
|
|
property int dimension: 20
|
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
source:
|
|
|
|
svgName ?
|
|
|
|
("../../icons/" + theme.preferredIconPack + "/" + svgName + ".svg") :
|
|
|
|
""
|
|
|
|
|
2019-04-27 11:16:45 +10:00
|
|
|
sourceSize.width: svgName ? dimension : 0
|
|
|
|
sourceSize.height: svgName ? dimension : 0
|
|
|
|
}
|