hovered: root.hovered
imageSourceHover: root.imageSourceHover
imageSource: root.icon.source
+ imageSourceWidth: root.icon.width
+ imageSourceHeight: root.icon.height
text: root.text
textColor: root.textColor
textColorHovered: root.textColorHovered
property bool hovered: false
property string imageSourceHover: ""
property string imageSource: ""
+ property int imageSourceWidth: 64
+ property int imageSourceHeight: 64
property string text: ""
property var display
Layout.maximumHeight: root.height
source: root.hovered ? root.imageSourceHover : root.imageSource
+
+ sourceSize {
+ width: root.imageSourceWidth
+ height: root.imageSourceHeight
+ }
+
fillMode: Image.PreserveAspectFit
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignVCenter