Skip to content
GitLab
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
d8945e70
Commit
d8945e70
authored
Aug 26, 2020
by
David Jarvie
Browse files
Add missing event attribute
parent
0986be66
Changes
3
Hide whitespace changes
Inline
Side-by-side
serializers/akonadi_serializer_kalarm.cpp
View file @
d8945e70
/*
* akonadi_serializer_kalarm.cpp - Akonadi resource serializer for KAlarm
* SPDX-FileCopyrightText: 2009-20
19
David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2009-20
20
David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
...
...
@@ -264,6 +264,9 @@ void SerializerPluginKAlarm::compare(AbstractDifferencesReporter *reporter, cons
if
(
eventL
.
commandXterm
()
!=
eventR
.
commandXterm
())
{
reportDifference
(
reporter
,
KAEventFormatter
::
CommandXTerm
);
}
if
(
eventL
.
commandHideError
()
!=
eventR
.
commandHideError
())
{
reportDifference
(
reporter
,
KAEventFormatter
::
CommandHideError
);
}
if
(
eventL
.
emailSubject
()
!=
eventR
.
emailSubject
())
{
reportDifference
(
reporter
,
KAEventFormatter
::
EmailSubject
);
}
...
...
serializers/kaeventformatter.cpp
View file @
d8945e70
/*
* kaeventformatter.cpp - converts KAlarmCal::KAEvent properties to text
* SPDX-FileCopyrightText: 2010-20
19
David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2010-20
20
David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
...
...
@@ -133,6 +133,8 @@ QString KAEventFormatter::label(Parameter param)
return
i18nc
(
"@label"
,
"Log file"
);
case
CommandXTerm
:
return
i18nc
(
"@label Execute in terminal window"
,
"Execute in terminal"
);
case
CommandHideError
:
return
i18nc
(
"@label"
,
"Hide command error"
);
case
EmailSubject
:
return
i18nc
(
"@label"
,
"Email subject"
);
...
...
@@ -220,6 +222,7 @@ bool KAEventFormatter::isApplicable(Parameter param) const
case
Command
:
case
LogFile
:
case
CommandXTerm
:
case
CommandHideError
:
return
mEvent
.
actionSubType
()
==
KAEvent
::
COMMAND
;
case
EmailSubject
:
...
...
@@ -385,6 +388,8 @@ QString KAEventFormatter::value(Parameter param) const
return
mEvent
.
logFile
();
case
CommandXTerm
:
return
trueFalse
(
mEvent
.
commandXterm
());
case
CommandHideError
:
return
trueFalse
(
mEvent
.
commandHideError
());
case
EmailSubject
:
return
mEvent
.
emailSubject
();
...
...
serializers/kaeventformatter.h
View file @
d8945e70
/*
* kaeventformatter.h - converts KAlarmCal::KAEvent properties to text
* SPDX-FileCopyrightText: 2010-20
19
David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2010-20
20
David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
...
...
@@ -71,6 +71,7 @@ public:
Command
,
LogFile
,
CommandXTerm
,
CommandHideError
,
EmailSubject
,
EmailFromId
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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