File tree 1 file changed +14
-4
lines changed
crates/cxx-qt-lib/src/qml
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 3
3
//
4
4
// SPDX-License-Identifier: MIT OR Apache-2.0
5
5
6
- #[ cxx :: bridge]
6
+ #[ cxx_qt :: bridge( cxx_file_stem = "qqmlengine" ) ]
7
7
mod ffi {
8
+ unsafe extern "C++Qt" {
9
+ include ! ( "cxx-qt-lib/qqmlengine.h" ) ;
10
+ type QQmlEngine ;
11
+
12
+ /// This signal is emitted when the QML loaded by the engine would like to exit from the event loop with the specified return code retCode.
13
+ #[ qsignal]
14
+ fn exit ( self : Pin < & mut QQmlEngine > , ret_code : i32 ) ;
15
+
16
+ /// This signal is emitted when the QML loaded by the engine would like to quit.
17
+ #[ qsignal]
18
+ fn quit ( self : Pin < & mut QQmlEngine > ) ;
19
+ }
20
+
8
21
unsafe extern "C++" {
9
22
include ! ( "cxx-qt-lib/qstring.h" ) ;
10
23
type QString = crate :: QString ;
@@ -13,9 +26,6 @@ mod ffi {
13
26
include ! ( "cxx-qt-lib/qurl.h" ) ;
14
27
type QUrl = crate :: QUrl ;
15
28
16
- include ! ( "cxx-qt-lib/qqmlengine.h" ) ;
17
- type QQmlEngine ;
18
-
19
29
/// Adds path as a directory where the engine searches for installed modules in a URL-based directory structure.
20
30
#[ rust_name = "add_import_path" ]
21
31
fn addImportPath ( self : Pin < & mut QQmlEngine > , path : & QString ) ;
You can’t perform that action at this time.
0 commit comments