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

« back to all changes in this revision

Viewing changes to skeleton/mallit/qml/Key.qml

  • Committer: liang
  • Date: 2011-06-23 02:15:58 UTC
  • Revision ID: git-v1:1f66263bb4a8176169a077f6076256f52c04b2b2
itĀ isĀ running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import Qt 4.7
 
2
/*import Qt.labs.gestures 1.0*/
 
3
import "utils.js" as Utils
 
4
 
 
5
BaseKey {
 
6
    id : key
 
7
    property int keycode : 0
 
8
    text : Utils.keysym[keyboard.mode][keycode][keyboard.mask]
 
9
 
 
10
    onMousePressed : { keyboard.keyPress( key ) }
 
11
    onMouseReleased : { keyboard.keyRelease( key ) }
 
12
    onMouseEntered : { keyboard.keyEnter( key ) }
 
13
    onMouseExited : { keyboard.keyExit( key ) }
 
14
}