mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Utilize ecm_set_deprecation_versions to exclude deprecated API
This commit is contained in:
parent
63124f569c
commit
8bc7f72a73
|
@ -26,6 +26,7 @@ include(CMakePackageConfigHelpers)
|
|||
include(GenerateExportHeader)
|
||||
include(FeatureSummary)
|
||||
include(ECMQtDeclareLoggingCategory)
|
||||
include(ECMDeprecationSettings)
|
||||
|
||||
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX DOLPHIN
|
||||
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/dolphin_version.h"
|
||||
|
@ -138,11 +139,10 @@ else()
|
|||
set(HAVE_TERMINAL TRUE)
|
||||
endif()
|
||||
|
||||
add_definitions(
|
||||
-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
|
||||
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
|
||||
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
|
||||
-DKF_DEPRECATED_WARNINGS_SINCE=0x060000
|
||||
ecm_set_disabled_deprecation_versions(SHOW_DEPRECATIONS
|
||||
QT 5.15
|
||||
KF 5.90
|
||||
KSERVICE 5.89 # We use KServiceTypeTrader in a compat code path
|
||||
)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <KDirLister>
|
||||
#include <KIO/Job>
|
||||
#include <KLocalizedString>
|
||||
#include <KLazyLocalizedString>
|
||||
#include <KUrlMimeData>
|
||||
|
||||
#include <QElapsedTimer>
|
||||
|
|
Loading…
Reference in New Issue
Block a user