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
KDE PIM Runtime
Commits
69d9b726
Commit
69d9b726
authored
Sep 24, 2022
by
Laurent Montel
Browse files
We depend against kf5.98
parent
57a31df5
Pipeline
#236412
passed with stage
in 10 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/kolab/pimkolab/calendaring/calendaring.cpp
View file @
69d9b726
...
...
@@ -6,7 +6,6 @@
#include
"calendaring.h"
#include
"pimkolab_debug.h"
#include
<kcalendarcore_version.h>
#include
<KCalendarCore/Todo>
#include
<QDate>
...
...
@@ -89,11 +88,7 @@ std::vector<Kolab::Event> Calendar::getEvents(const Kolab::cDateTime &start, con
const
QTimeZone
tz
=
s
.
timeZone
();
KCalendarCore
::
Event
::
List
list
=
mCalendar
->
events
(
s
.
date
(),
e
.
date
(),
tz
,
true
);
if
(
sort
)
{
#if KCALENDARCORE_VERSION < QT_VERSION_CHECK(5, 95, 0)
list
=
mCalendar
->
sortEvents
(
list
,
KCalendarCore
::
EventSortStartDate
,
KCalendarCore
::
SortDirectionAscending
);
#else
list
=
mCalendar
->
sortEvents
(
std
::
move
(
list
),
KCalendarCore
::
EventSortStartDate
,
KCalendarCore
::
SortDirectionAscending
);
#endif
}
std
::
vector
<
Kolab
::
Event
>
eventlist
;
for
(
const
KCalendarCore
::
Event
::
Ptr
&
event
:
std
::
as_const
(
list
))
{
...
...
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