1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "../UIConstants.js" as Const
7 property string iconSource
8 property bool pressed: mouseArea.pressed
9 property string color: Const.TRANSPARENT
19 anchors { fill: parent; margins: 6 }
27 anchors { fill: parent; margins: 6 }
31 visible: mouseArea.pressed
38 anchors.centerIn: parent
39 source: iconSource == "" ? "" : "../" + iconSource
40 sourceSize.width: width
41 sourceSize.height: height
49 onClicked: parent.clicked()
50 onPressAndHold: parent.pressAndHold()