Commit 52ee397
committed
COMP: Fix ctkDICOM moc with strict Qt 6.x meta-type checks
Some Qt 6.x versions (e.g. 6.4) require pointer types used in the
meta-object system to refer to complete types when generating
meta-type information for Q_INVOKABLEs, signals, and slots.
`ctkDICOMJobResponseSet` and `ctkDICOMDisplayedFieldGeneratorAbstractRule`
are only forward-declared in `ctkDICOMDatabase.h` and
`ctkDICOMDisplayedFieldGeneratorRuleFactory.h`, respectively, which
causes moc in these stricter Qt versions to treat them as incomplete
and fail meta-type checks.
Add Q_MOC_INCLUDE entries so moc sees the full definitions without
introducing circular includes at the C++ level. This mirrors the
workflow fix in e531993 ("COMP: Fix ctkWorkflow moc with strict
Qt 6.x meta-type checks", 2025-11-09) while restoring compatibility
with stricter Qt 6.x releases and remaining safe for newer versions.1 parent e531993 commit 52ee397
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments