@@ -30,7 +30,7 @@ Item {
32 Component.onCompleted: {
32 Component.onCompleted: {
33− if (!inputMethodState.touchpadTutorialHasRun) {
33+ if (!settings.touchpadTutorialHasRun) {
34 root.runTutorial()
34 root.runTutorial()
@@ -57,9 +57,8 @@ Item {
58 readonly property bool pressed: point1.pressed || point2.pressed || leftButton.pressed || rightButton.pressed
58 readonly property bool pressed: point1.pressed || point2.pressed || leftButton.pressed || rightButton.pressed
60− Settings {
60+ property var settings: Settings {
61− id: inputMethodState
61+ objectName: "virtualTouchPadSettings"
62− objectName: "inputMethodState"
63 property bool touchpadTutorialHasRun: false
62 property bool touchpadTutorialHasRun: false
64 property bool oskEnabled: true
63 property bool oskEnabled: true
@@ -224,7 +223,7 @@ Item {
224 width: height
223 width: height
226 onClicked: {
225 onClicked: {
227− inputMethodState.oskEnabled = !inputMethodState.oskEnabled
226+ settings.oskEnabled = !settings.oskEnabled
230 Rectangle {
229 Rectangle {
@@ -247,7 +246,7 @@ Item {
247 InputMethod {
246 InputMethod {
248 id: inputMethod
247 id: inputMethod
249 // Don't resize when there is only one screen to avoid resize clashing with the InputMethod in the Shell.
248 // Don't resize when there is only one screen to avoid resize clashing with the InputMethod in the Shell.
250− enabled: screens.count > 1 && inputMethodState.oskEnabled && !tutorial.running
249+ enabled: screens.count > 1 && settings.oskEnabled && !tutorial.running
251 objectName: "inputMethod"
250 objectName: "inputMethod"
252 anchors.fill: parent
251 anchors.fill: parent
@@ -402,6 +401,6 @@ Item {
402 UbuntuNumberAnimation { target: oskButton; property: "opacity"; to: 1 }
401 UbuntuNumberAnimation { target: oskButton; property: "opacity"; to: 1 }
403 PropertyAction { targets: [leftButton, rightButton, oskButton]; property: "enabled"; value: true }
402 PropertyAction { targets: [leftButton, rightButton, oskButton]; property: "enabled"; value: true }
405− PropertyAction { target: inputMethodState; property: "touchpadTutorialHasRun"; value: true }
404+ PropertyAction { target: settings; property: "touchpadTutorialHasRun"; value: true }