Auto indent.
authorRuediger Gad <rgad@fb2.fh-frankfurt.de>
Sun, 15 Apr 2012 11:05:01 +0000 (13:05 +0200)
committerRuediger Gad <rgad@fb2.fh-frankfurt.de>
Sun, 15 Apr 2012 11:05:01 +0000 (13:05 +0200)
qml/QZeeControl/MainPage.qml

index dce93f8..b661377 100644 (file)
@@ -248,10 +248,10 @@ Page {
         anchors{top: headerItem.bottom; bottom: parent.bottom; left: parent.left; right: parent.right}
         contentHeight: contentColumn.height
 
-            Column{
-                id: contentColumn
-                spacing: 10
-                anchors{top: parent.top; left: parent.left; right: parent.right; topMargin: 10}
+        Column{
+            id: contentColumn
+            spacing: 10
+            anchors{top: parent.top; left: parent.left; right: parent.right; topMargin: 10}
 
             Button{
                 id: scanButton
@@ -467,28 +467,28 @@ Page {
             mainPage.state = "disconnected"
         }
 
-//        onStickMoved: {
-//            console.log("Stick moved. x: " + x + " y: " + y)
-//        }
+        //        onStickMoved: {
+        //            console.log("Stick moved. x: " + x + " y: " + y)
+        //        }
 
-//        onButtonsChanged: {
-//            console.log("Buttons changed. A: " + a + " B: " + b + " C: " + c + " D: " + d)
-//        }
+        //        onButtonsChanged: {
+        //            console.log("Buttons changed. A: " + a + " B: " + b + " C: " + c + " D: " + d)
+        //        }
 
         onAChanged: {
-//            console.log("A changed to: " + val)
+            //            console.log("A changed to: " + val)
             xtstAdapter.sendKey(keyBindingA, val);
         }
         onBChanged: {
-//            console.log("B changed to: " + val)
+            //            console.log("B changed to: " + val)
             xtstAdapter.sendKey(keyBindingB, val);
         }
         onCChanged: {
-//            console.log("C changed to: " + val)
+            //            console.log("C changed to: " + val)
             xtstAdapter.sendKey(keyBindingC, val);
         }
         onDChanged: {
-//            console.log("D changed to: " + val)
+            //            console.log("D changed to: " + val)
             xtstAdapter.sendKey(keyBindingD, val);
         }
 
@@ -497,27 +497,27 @@ Page {
         onLeftChanged: xtstAdapter.sendKey(keyBindingLeft, val)
         onRightChanged: xtstAdapter.sendKey(keyBindingRight, val)
 
-//        onXChanged: {
-//            if(val > joystickThreshold){
-//                xtstAdapter.sendKey("Right", true);
-//            }else if(val < -joystickThreshold){
-//                xtstAdapter.sendKey("Left", true);
-//            }else{
-//                xtstAdapter.sendKey("Right", false);
-//                xtstAdapter.sendKey("Left", false);
-//            }
-//        }
-
-//        onYChanged: {
-//            if(val > joystickThreshold){
-//                xtstAdapter.sendKey("Down", true);
-//            }else if(val < -joystickThreshold){
-//                xtstAdapter.sendKey("Up", true);
-//            }else{
-//                xtstAdapter.sendKey("Down", false);
-//                xtstAdapter.sendKey("Up", false);
-//            }
-//        }
+        //        onXChanged: {
+        //            if(val > joystickThreshold){
+        //                xtstAdapter.sendKey("Right", true);
+        //            }else if(val < -joystickThreshold){
+        //                xtstAdapter.sendKey("Left", true);
+        //            }else{
+        //                xtstAdapter.sendKey("Right", false);
+        //                xtstAdapter.sendKey("Left", false);
+        //            }
+        //        }
+
+        //        onYChanged: {
+        //            if(val > joystickThreshold){
+        //                xtstAdapter.sendKey("Down", true);
+        //            }else if(val < -joystickThreshold){
+        //                xtstAdapter.sendKey("Up", true);
+        //            }else{
+        //                xtstAdapter.sendKey("Down", false);
+        //                xtstAdapter.sendKey("Up", false);
+        //            }
+        //        }
     }
 
     XtstAdapter{