瀏覽代碼

Add clear button to handwriging

Alexey Edelev 5 年之前
父節點
當前提交
f4c931866c
共有 1 個文件被更改,包括 15 次插入0 次删除
  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"
         }
     }
 }