Simplify source URL construction
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
7671927fa4
commit
8f7ca298bc
@ -19,12 +19,7 @@ AbstractButton {
|
||||
|
||||
// Workaround, can't get icon.source working for now...
|
||||
anchors.fill: parent
|
||||
source: {
|
||||
var src = "image://colorimage/" + image;
|
||||
if (changeColorOnHover)
|
||||
src += "?" + (button.hovered ? highlightColor : buttonTextColor);
|
||||
return src;
|
||||
}
|
||||
source: "image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
Loading…
Reference in New Issue
Block a user