Sfoglia il codice sorgente

Add clear button to handwriging

Alexey Edelev 5 anni fa
parent
commit
f4c931866c
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  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"
         }
     }
 }