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
a6f1f714
Commit
a6f1f714
authored
Oct 01, 2019
by
David Jarvie
Browse files
Add a comparison category for compare()
parent
36e213b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kaevent.cpp
View file @
a6f1f714
...
...
@@ -3638,8 +3638,12 @@ bool KAEventPrivate::compare(const KAEventPrivate& other, KAEvent::Comparison co
}
}
if
(
comparison
&
KAEvent
::
Compare
::
ICalendar
)
{
if
(
mCreatedDateTime
!=
other
.
mCreatedDateTime
||
mCustomProperties
!=
other
.
mCustomProperties
)
{
if
(
mCustomProperties
!=
other
.
mCustomProperties
)
{
return
false
;
}
}
if
(
comparison
&
KAEvent
::
Compare
::
Created
)
{
if
(
mCreatedDateTime
!=
other
.
mCreatedDateTime
)
{
return
false
;
}
}
...
...
src/kaevent.h
View file @
a6f1f714
...
...
@@ -1289,9 +1289,10 @@ public:
/** Data categories for compare(). */
enum
class
Compare
{
Id
=
0x01
,
//!< the event ID
ICalendar
=
0x02
,
//!< iCalendar data stored in VEVENT in the calendar file
UserSettable
=
0x04
,
//!< user settable data, e.g. resource ID
CurrentState
=
0x08
//!< changeable data which records the current state of the event
ICalendar
=
0x02
,
//!< extra custom properties for the event in the iCalendar file
Created
=
0x04
,
//!< the event creation timestamp
UserSettable
=
0x08
,
//!< user settable data: resource ID, item ID
CurrentState
=
0x10
//!< changeable data which records the current state of the event
};
Q_DECLARE_FLAGS
(
Comparison
,
Compare
)
...
...
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