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

« back to all changes in this revision

Viewing changes to src/maliit/qml/Key.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 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
}