Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not include uic generated file in header #272

Closed

Conversation

Namdhari
Copy link

@Namdhari Namdhari commented Aug 2, 2023

QmitkLevelWindowWidget.h included ui_QmitkLevelWindowWidget.h. This is a file generated by QT's uic. And it is not right to include it in the header. An application that includes QmitkLevelWindowWidget.h fails to compile. A correct way is to do forward declaration in the header and include the generated header in the corresponding cpp file. Please see the commit for more details; it is a standard way to use uic generated headers, and is already used in many mitk headers already.

Signed-off-by: Sukhraj Singh sukhraj.singh01@stryker.com

QmitkLevelWindowWidget.h included ui_QmitkLevelWindowWidget.h. This is a file generated by QT's uic. And it is not right to include it in the header. An application that includes QmitkLevelWindowWidget.h fails to compile. A corect way is to do forward declaration in the header and include the generated header in corresponding cpp file. Please see the commit for more details, it is standard way to use uic generated headers, and is already used in many mitk headers already.

Signed-off-by: Sukhraj Singh <sukhraj.singh01@stryker.com>
@kislinsk
Copy link
Contributor

kislinsk commented Oct 4, 2023

Thanks! Merged into develop.

@kislinsk kislinsk closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants