Skip to content

Make include dir layout consistent with other KF modulees

<include visibility layer> / <C++ namespace> / ForwardCamelCase
<include visibility layer> / <C++ namespace lc> / normal class headers

So as result consumer include statements match the C++ namespace, e.g. Purpose::Menu -> #include <Purpose/Menu>

The include visibility layer is named "KFx/Foo", so for the two libs here is KF6/Purpose & KF6/PurposeWidgets.

Currently consumers have to use #include <purposewidgets/menu.h> or #include <PurposeWidgets/Menu> to get the class Purpose::Menu. Which is surprising and inconsistent with KF otherwise.

Backporting to KF5: !75 (merged) with the new include namespace & deprecation backward-compat headers.

@apol @vkrause @nicolasfella

Edited by Friedrich W. H. Kossebau

Merge request reports