mirror of https://github.com/qarmin/czkawka
pull/1102/head
parent
c753c06620
commit
98590adbd1
@ -1,7 +1,21 @@
|
||||
use std::rc::Rc;
|
||||
use slint::{Model, ModelRc, SharedString, StandardListViewItem, VecModel};
|
||||
slint::include_modules!();
|
||||
|
||||
fn main() {
|
||||
MainWindow::new().unwrap().run().unwrap();
|
||||
}
|
||||
let app = MainWindow::new().unwrap();//.run().unwrap();
|
||||
let row_data: Rc<VecModel<ModelRc<SharedString>>> = Rc::new(VecModel::default());
|
||||
|
||||
slint::slint! {}
|
||||
for r in 0..10000000 {
|
||||
let items = VecModel::default();
|
||||
|
||||
for c in 0..3 {
|
||||
items.push(slint::format!("Item {r}.{c}").into());
|
||||
}
|
||||
|
||||
row_data.push(ModelRc::new(items));
|
||||
}
|
||||
app.set_empty_folder_model(row_data.into());
|
||||
|
||||
app.run().unwrap();
|
||||
}
|
Loading…
Reference in New Issue