diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,8 @@ list(APPEND CMAKE_AUTOMOC_MACRO_NAMES ${KRunner_AUTOMOC_MACRO_NAMES}) endif() add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) +add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x053f00) +add_definitions(-DPLASMA_DISABLE_DEPRECATED_BEFORE_AND_AT=0x050500) # needed because we use Plasma::Package in the API add_definitions(-DQT_NO_FOREACH) # Subdirectories diff --git a/src/abstractrunner.h b/src/abstractrunner.h --- a/src/abstractrunner.h +++ b/src/abstractrunner.h @@ -33,6 +33,7 @@ #include "runnercontext.h" #include "runnersyntax.h" #include +#include // for PLASMA_ENABLE_DEPRECATED_SINCE class QAction; class QMimeData; @@ -242,15 +243,18 @@ */ QIcon icon() const; +#if PLASMA_ENABLE_DEPRECATED_SINCE(5, 28) // Plasma::Package is defined with this condition /** * Accessor for the associated Package object if any. * * Note that the returned pointer is only valid for the lifetime of * the runner. * * @return the Package object, which may be invalid + * @deprecated since 5.28, use KPackage::Package instead, no accessor in this class **/ Package package() const; +#endif /** * Signal runner to reload its configuration.