Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
58defa20
Commit
58defa20
authored
Jan 13, 2021
by
Laurent Montel
😁
Browse files
MAke it compile without deprecated methods
parent
35823713
Pipeline
#47508
passed with stage
in 17 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
58defa20
...
...
@@ -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=0x054
E
00
)
add_definitions
(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054
F
00
)
option
(
USE_UNITY_CMAKE_SUPPORT
"Use UNITY cmake support (speedup compile time)"
FALSE
)
set
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT false
)
...
...
src/functions.cpp
View file @
58defa20
...
...
@@ -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
())
...
...
David Jarvie
@djarvie
mentioned in commit
bc6f7d5e
·
Jan 13, 2021
mentioned in commit
bc6f7d5e
mentioned in commit bc6f7d5ee4d435c94d300677f6dbc65a194652d0
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment