summaryrefslogtreecommitdiffstats
path: root/examples/qr_code
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:13:36 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:19:45 +0200
commite6a93e960c3ac71a74f11555fd2d225c185f6e8c (patch)
tree3bda6043c7b2840f3414e9e5fbf7e869077f0e27 /examples/qr_code
parentf10e936f00d4b83dcacfdebd2727b1a5cd1add95 (diff)
downloadiced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.gz
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.bz2
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.zip
Rename `on_change` to `on_input` for `TextInput`
Diffstat (limited to 'examples/qr_code')
-rw-r--r--examples/qr_code/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs
index 0486b068..867ebfa4 100644
--- a/examples/qr_code/src/main.rs
+++ b/examples/qr_code/src/main.rs
@@ -51,7 +51,7 @@ impl Sandbox for QRGenerator {
let input =
text_input("Type the data of your QR code here...", &self.data)
- .on_change(Message::DataChanged)
+ .on_input(Message::DataChanged)
.size(30)
.padding(15);