~maliit-team/maliit-plugin-jp/trunk

« back to all changes in this revision

Viewing changes to src/maliit/qml/BaseKey.qml

  • Committer: liang
  • Date: 2011-07-20 17:19:53 UTC
  • Revision ID: git-v1:c3d107a6b280a8d2c071bb1df794c7b0a4d4c703
package done

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 1.1
 
2
import com.meego 1.0
 
3
/*import Qt.labs.gestures 1.0*/
 
4
 
 
5
FakeMouseArea {
 
6
    id : key
 
7
    property bool keepDown : false 
 
8
    property alias checked : button.checked
 
9
    property alias text : button.text
 
10
 
 
11
    Button {
 
12
        id : button
 
13
        x : 2
 
14
        y : 2
 
15
        width : parent.width - 4
 
16
        height : parent.height - 4
 
17
        /*anchors.centerIn :parent*/
 
18
        checked : down || keepDown
 
19
    }
 
20
}