https://bugs.kde.org/show_bug.cgi?id=424352
Bug ID: 424352 Summary: kparts/part.h: Mismatch between conditions for definition and use of PartSelectEvent Product: frameworks-kparts Version: 5.72.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: fa...@kde.org Reporter: b...@lindev.ch CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY In <kparts/part.h> from KParts 5.72.0, class PartSelectEvent is declared if KPARTS_ENABLE_DEPRECATED_SINCE(5,72) is set [line 42], but used if KPARTS_BUILD_DEPRECATED_SINCE(5,72) is set [line 227]. This causes build failures (use of undefined type) if KPARTS_BUILD_DEPRECATED... is set, but KPARTS_ENABLE_DEPRECATED... is not. STEPS TO REPRODUCE 1. Install frameworks 5.72.0 2. Build something that sets BUILD but not ENABLED, such as kontactinterface from release-service 20.07.80 OBSERVED RESULT /usr/include/KF5/KParts/kparts/part.h:227:34: error: unknown type name 'PartSelectEvent' virtual void partSelectEvent(PartSelectEvent *event); EXPECTED RESULT Compiles SOFTWARE/OS VERSIONS Linux/KDE Plasma: OpenMandriva Cooker KDE Plasma Version: 5.19.3 KDE Frameworks Version: 5.72.0 Qt Version: 5.15.0 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.