updating flake and todo

This commit is contained in:
Chris Cochrun 2025-08-06 09:13:35 -05:00
parent e52cc3eb29
commit 8de473519b
4 changed files with 12 additions and 6 deletions

View file

@ -5,7 +5,7 @@ fn main() {
.qt_module("Network")
.qml_module(QmlModule {
uri: "org.kde.simplemdviewer",
qml_files: &["src/qml/Main.qml"],
qml_files: &["src/qml/main.qml"],
rust_files: &["src/main.rs"],
..Default::default()
})

View file

@ -1,7 +1,8 @@
#[cxx_qt::bridge]
mod ffi {
extern "RustQt" {
unsafe extern "RustQt" {
#[qobject]
#[qml_element]
type DummyQObject = super::DummyRustStruct;
}
}
@ -32,7 +33,7 @@ fn main() {
let mut engine = QQmlApplicationEngine::new();
if let Some(engine) = engine.as_mut() {
engine.load(&QUrl::from(
"qrc:/qt/qml/org/kde/simplemdviewer/src/qml/Main.qml",
"qrc:/qt/qml/org/kde/simplemdviewer/src/qml/main.qml",
));
}