Paste #wOcixE02R

import org.kde.kirigami 2.2 as Kirigami

Kirigami.Icon  {
    // onClicked signal
    signal clicked()

    height: parent.height
    width: Kirigami.Units.largeSpacing * 4
    anchors.verticalCenter: parent.verticalCenter
    active: actionArea.containsPress

    MouseArea {
        id: actionArea
        anchors.fill: parent
        hoverEnabled: true
        onClicked: parent.clicked()
        onEntered: color = Kirigami.Theme.hoverColor
        onPressed: color = Kirigami.Theme.focusColor
        onExited: color = Kirigami.Theme.textColor
    }
}