kground ? background.leftPadding : 0 rightPadding: background ? background.rightPadding : 0 bottomPadding: background ? background.bottomPadding : 0 topInset: background ? -background.topInset || 0 : 0 leftInset: background ? -background.leftInset || 0 : 0 rightInset: background ? -background.rightInset || 0 : 0 bottomInset: background ? -background.bottomInset || 0 : 0 icon.width: 24 icon.height: 24 icon.color: control.palette.buttonText contentItem: IconLabel { spacing: control.spacing mirrored: control.mirrored display: control.display icon: control.icon text: control.text font: control.font color: control.palette.buttonText } background: NinePatchImage { source: Imagine.url + "toolbutton-background" NinePatchImageSelector on source { states: [ {"disabled": !control.enabled}, {"pressed": control.down}, {"checked": control.checked}, {"checkable": control.checkable}, {"focused": control.visualFocus}, {"highlighted": control.highlighted}, {"flat": control.flat}, {"mirrored": control.mirrored}, {"hovered": control.enabled && control.hovered} ] } } }