Forráskód Böngészése

Add clear button to handwriging

Alexey Edelev 5 éve
szülő
commit
f4c931866c
1 módosított fájl, 15 hozzáadás és 0 törlés
  1. 15 0
      handwriting/handwritingui/main.qml

+ 15 - 0
handwriting/handwritingui/main.qml

@@ -66,6 +66,21 @@ ApplicationWindow {
                     }
                 }
             }
+
+            Connections {
+                target: clearButton
+                onClicked: {
+                    tile.color = "black"
+                }
+            }
+        }
+    }
+
+    Column {
+        anchors.right: parent.right
+        Button {
+            id: clearButton
+            text: "Clear"
         }
     }
 }