102baccbe5
Add standard mechanism in HButton for loading icon display; have HImage and HIcon base components.
11 lines
245 B
QML
11 lines
245 B
QML
import QtQuick 2.7
|
|
|
|
HImage {
|
|
property var svgName: null
|
|
property int dimension: 20
|
|
|
|
source: "../../icons/" + (svgName || "none") + ".svg"
|
|
sourceSize.width: svgName ? dimension : 0
|
|
sourceSize.height: svgName ? dimension : 0
|
|
}
|