diff options
author | 2024-03-16 16:12:07 +0100 | |
---|---|---|
committer | 2024-03-16 16:12:07 +0100 | |
commit | bb71e8481ed59f991b9bd9dc55ea7e011ba0aac6 (patch) | |
tree | 3e6a5550cd726af978fbc884f5f6af5bd68dfafd /examples/qr_code | |
parent | 3f81c524ccad2dd3fc4e6144f68b133132b1421b (diff) | |
download | iced-bb71e8481ed59f991b9bd9dc55ea7e011ba0aac6.tar.gz iced-bb71e8481ed59f991b9bd9dc55ea7e011ba0aac6.tar.bz2 iced-bb71e8481ed59f991b9bd9dc55ea7e011ba0aac6.zip |
Make `sandbox` helper take a `title` as well
Diffstat (limited to 'examples/qr_code')
-rw-r--r-- | examples/qr_code/src/main.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs index a7a3a385..a980bfd7 100644 --- a/examples/qr_code/src/main.rs +++ b/examples/qr_code/src/main.rs @@ -4,10 +4,13 @@ use iced::widget::{ use iced::{Alignment, Element, Length, Theme}; pub fn main() -> iced::Result { - iced::sandbox(QRGenerator::update, QRGenerator::view) - .title("QR Code Generator - Iced") - .theme(QRGenerator::theme) - .run() + iced::sandbox( + "QR Code Generator - Iced", + QRGenerator::update, + QRGenerator::view, + ) + .theme(QRGenerator::theme) + .run() } #[derive(Default)] |