File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
crates/cxx-qt-gen/src/generator/cpp Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
28
29
29
- ` VCPKG ` is now set to off by default and packages are only built in release mode in the cache
30
30
31
+ ### Fixed
32
+
33
+ - Missing include for ` MaybeLockGuard ` when using only ` extern "C++Qt" ` signals
34
+
31
35
## [ 0.6.0] ( https://github.com/KDAB/cxx-qt/compare/v0.5.3...v0.6.0 ) - 2023-11-17
32
36
33
37
### Added
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ pub fn generate(
32
32
let mut block = GeneratedCppExternCxxQtBlocks :: default ( ) ;
33
33
let data = generate_cpp_signal ( signal, & signal. qobject_ident , cxx_mappings) ?;
34
34
block. includes = data. includes ;
35
+ // Ensure that we include MaybeLockGuard<T> that is used in multiple places
36
+ block
37
+ . includes
38
+ . insert ( "#include <cxx-qt-common/cxxqt_maybelockguard.h>" . to_owned ( ) ) ;
35
39
block. forward_declares = data. forward_declares ;
36
40
block. fragments = data. fragments ;
37
41
debug_assert ! ( data. methods. is_empty( ) ) ;
You can’t perform that action at this time.
0 commit comments