Commit 8443f9c8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reactivate KF_DISABLE_DEPRECATED_BEFORE_AND_AT

parent 2355ecca
Pipeline #56442 passed with stage
in 27 minutes and 27 seconds
......@@ -150,9 +150,8 @@ configure_file(kmail-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kmail-version.h
if(BUILD_TESTING)
add_definitions(-DBUILD_TESTING)
endif()
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
#add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055100) #Need to find a convert method for KPluginInfo::fromServices
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055100)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
......
  • @mlaurent BTW, if you need/want to have a lower bar for the deprecated API visibility of a certain KF module, you can set this by using the module specific flag, e.g. for KService API this would be KSERVICE_DISABLE_DEPRECATED_BEFORE_AND_AT. The KF_DISABLE_DEPRECATED_BEFORE_AND_AT sets a default for all modules, but is ignored when the module specific variable is set. So e.g. (random version values used just for example) you would have used it like this:

    add_definitions(
        # group default
        -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055100
        # module specific
        # need to find a convert method for KPluginInfo::fromServices
        -DKSERVICE_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054900
    )

    Some real life examples are:

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment