Commit 58defa20 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

MAke it compile without deprecated methods

parent 35823713
Pipeline #47508 passed with stage
in 17 minutes and 58 seconds
......@@ -122,7 +122,7 @@ add_definitions(-DQT_NO_KEYWORDS)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054E00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054F00)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" FALSE)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT false)
......
......@@ -29,6 +29,7 @@
#include "lib/shellprocess.h"
#include "config-kalarm.h"
#include "kalarm_debug.h"
#include "kauth_version.h"
#include <kalarmcal_version.h>
#include <KAlarmCal/Identities>
......@@ -1279,7 +1280,9 @@ bool setRtcWakeTime(unsigned triggerTime, QWidget* parent)
args[QStringLiteral("time")] = triggerTime;
KAuth::Action action(QStringLiteral("org.kde.kalarm.rtcwake.settimer"));
action.setHelperId(QStringLiteral("org.kde.kalarm.rtcwake"));
#if KAUTH_VERSION < QT_VERSION_CHECK(5, 79, 0)
action.setParentWidget(parent);
#endif
action.setArguments(args);
KAuth::ExecuteJob* job = action.execute();
if (!job->exec())
......
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