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

« back to all changes in this revision

Viewing changes to skeleton/mallit/qml/main.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:
10
10
    opacity : 1
11
11
 
12
12
    IMEngine {
13
 
        id : imEngine
14
 
    }
15
 
 
16
 
    Button {
17
 
        id : button
18
 
        x : 200
19
 
        y : 200
20
 
        width : 200
21
 
        height : 80
22
 
        text : "test"
23
 
        onClicked : {
24
 
            imEngine.appendCode( "a" )
25
 
            imEngine.updateCandidate( 0 )
26
 
            console.log( "getcode", imEngine.getCode() )
27
 
            console.log( "getcode", imEngine.getPreeditCode() )
28
 
            button.text = imEngine.getWord()
 
13
        id : engine
 
14
    }
 
15
 
 
16
    Palette {
 
17
        id : palette
 
18
    }
 
19
 
 
20
    RealMouseArea {
 
21
        id : root
 
22
        x : 0
 
23
        y : 160
 
24
        width : 854
 
25
        height : 320
 
26
        Keyboard {
 
27
            id : keyboard
 
28
            x : 0
 
29
            y : 0
 
30
            width : 854
 
31
            height : 320
29
32
        }
30
33
    }
 
34
    Tooltip {
 
35
        id : tooltip
 
36
    }
31
37
 
32
38
    Component.onCompleted : {
33
 
        inputmethod.setInputMethodArea( Qt.rect( button.x, button.y, button.width, button.height ) )
 
39
        inputmethod.setInputMethodArea( Qt.rect( root.x, root.y, root.width, root.height ) )
34
40
        console.log( "load start" ) 
35
 
        imEngine.load( "workspace/cim/data/formated" )
36
 
        imEngine.setKeyboardLayout( 1 )
 
41
        engine.load( "workspace/cim/data/formated" )
 
42
        engine.setKeyboardLayout( 1 )
37
43
        console.log( "load end" ) 
38
44
    }
39
45
}