Commit 0f83fff5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compiles without deprecated methods

parent 6f04186c
......@@ -73,6 +73,7 @@ add_definitions(-DQT_NO_KEYWORDS)
add_definitions(-DQT_NO_FOREACH)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000)
endif()
add_subdirectory(daemon)
add_subdirectory(kcmodule)
......
......@@ -49,7 +49,6 @@
K_PLUGIN_FACTORY(PowerDevilActivitiesKCMFactory,
registerPlugin<ActivityPage>();
)
K_EXPORT_PLUGIN(PowerDevilActivitiesKCMFactory("powerdevilactivitiesconfig","powerdevil"))
ActivityPage::ActivityPage(QWidget *parent, const QVariantList &args)
: KCModule(nullptr, parent, args)
......
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