Commit cd0fc317 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Implemented "TODO export it to Cell"

It is more logic to seek for userclick in Cell rather than in Chip.
parent 75a6ef68
......@@ -79,7 +79,11 @@ Item {
imagePrefix: parent.chipImagePrefix + "_"
animationTime: parent.chipAnimationTime
}
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: cellContainer.clicked()
}
}
......@@ -45,12 +45,6 @@ Item {
*/
property int animationTime: 25 * 12
//TODO export it to Cell
/**
* Emitted when user clicks this chip
*/
signal clicked
CanvasItem {
id: chipImage
anchors.fill: parent
......@@ -58,12 +52,6 @@ Item {
spriteKey: imagePrefix + currentFrame
}
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: chipContainer.clicked()
}
Timer {
id: blinkingTimer
interval: 500
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment