~kobe24-lixiang/youker-assistant/trunk

« back to all changes in this revision

Viewing changes to qml/func/settings/TouchpadSet.qml

  • Committer: Shine Huang
  • Date: 2013-08-26 05:59:11 UTC
  • mfrom: (72.1.35 youker-assistant)
  • Revision ID: hostc@163.com-20130826055911-1losjpsvdiaz5oyf
add monitorball func into systembus

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    Component.onCompleted: {
46
46
        touchpadsetpage.scrollbars_mode = sessiondispatcher.get_scrollbars_mode_qt();
47
47
        touchpadsetpage.touchscrolling_mode = sessiondispatcher.get_touchscrolling_mode_qt();//edge-scrolling
48
 
//        console.log("888888888");
49
 
//        console.log(touchpadsetpage.touchscrolling_mode);
50
48
        if (sessiondispatcher.get_touchpad_enable_qt())
51
49
            touchpadswitcher.switchedOn = true;
52
50
        else
124
122
            width: 110
125
123
            onSwitched: {
126
124
                if (touchpadswitcher.switchedOn) {
127
 
                    console.log("触摸板开关on---------------");
128
125
                    sessiondispatcher.set_touchpad_enable_qt(true);
129
126
                }
130
127
                else if(!touchpadswitcher.switchedOn) {
131
 
                    console.log("触摸板开关off---------------");
132
128
                    sessiondispatcher.set_touchpad_enable_qt(false);
133
129
                }
134
130
            }
189
185
                        id:overlay
190
186
                        titleName: "特色类型" //overlay模式
191
187
                        flag: "radio"
192
 
                        onClicked: console.log(overlay.checked)
 
188
                        onClicked: {}
193
189
                    }
194
190
                    Common.CheckBox {
195
191
                        id: legacy
196
192
                        titleName: "标准类型"  //legacy模式
197
193
                        flag: "radio"
198
 
                        onClicked: console.log(legacy.checked)
 
194
                        onClicked: {}
199
195
                    }
200
196
    //            }
201
197
            }
224
220
                        id:edge
225
221
                        titleName: "边缘触发"//"edge模式"
226
222
                        flag: "radio"
227
 
                        onClicked: console.log(edge.checked)
 
223
                        onClicked: {}
228
224
                    }
229
225
                    Common.CheckBox {
230
226
                        id: twofinger
231
227
                        titleName: "双指触发"//"twofinger模式"
232
228
                        flag: "radio"
233
 
                        onClicked: console.log(twofinger.checked)
 
229
                        onClicked: {}
234
230
                    }
235
231
    //            }
236
232
            }