/*
 * Copyright (c) 2010 Nokia Corporation.
 */

import Qt 4.7

Rectangle {
    id: button

    property alias source: image.source

    signal clicked

    width: 90; height: 80
    color: "transparent"

    Behavior on scale { NumberAnimation { duration: 100 } }

    Image {
        id: image

        anchors.centerIn: parent
    }

    MouseArea {
        anchors.fill: parent
        onClicked: { button.clicked() }
        onEntered: { button.scale = 0.9 }
        onExited: { button.scale = 1.0 }
    }
}
