Signed-off-by: Camila Ayres <hello@camilasan.com>
id: contents
display: root.display
hovered: root.hovered
- imageSourceHover: root.imageSourceHover
imageSource: root.icon.source
imageSourceWidth: root.icon.width
imageSourceHeight: root.icon.height
id: root
property bool hovered: false
- property string imageSourceHover: ""
property string imageSource: ""
property int imageSourceWidth: undefined
property int imageSourceHeight: undefined
Layout.maximumHeight: root.height
Layout.alignment: Qt.AlignCenter
- source: root.hovered ? root.imageSourceHover : root.imageSource
+ source: root.imageSource
sourceSize {
width: root.imageSourceWidth