forked from KDAB/cxx-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cxx-qt-gen: have an explicit error for non public qobjects
Before this patch if you didn't mark a qobject struct as public the following error would occur. ``` [build] error[E0432]: unresolved import `super` [build] --> examples/qml_minimal/rust/src/cxxqt_object.rs:24:12 [build] | [build] 24 | struct MyObject { [build] | ^^^^^^^^ no `MyObject` in `cxxqt_object` [build] | [build] help: consider importing this type alias instead [build] | [build] 24 | struct crate::cxxqt_object::qobject::MyObject; [build] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` After this patch the error is explicit. ``` [build] error: qobject marked structs must be public [build] --> examples/qml_minimal/rust/src/cxxqt_object.rs:24:5 [build] | [build] 24 | struct MyObject { [build] | ^^^^^^ ``` Closes KDAB#457
- Loading branch information
1 parent
66a5b61
commit fbe4d03
Showing
7 changed files
with
52 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters