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
Plasma
Plasma Workspace
Commits
4d7b71d7
Commit
4d7b71d7
authored
Nov 03, 2020
by
David Redondo
🏎
Browse files
QDateTime(const QDate&) is deprecated
parent
853e135c
Changes
1
Hide whitespace changes
Inline
Side-by-side
plasmacalendarintegration/holidaysevents.cpp
View file @
4d7b71d7
...
...
@@ -61,8 +61,8 @@ void HolidaysEventsPlugin::loadEventsForDateRange(const QDate &startDate, const
Q_FOREACH
(
const
KHolidays
::
Holiday
&
holiday
,
holidays
)
{
CalendarEvents
::
EventData
eventData
;
eventData
.
setStartDateTime
(
QDateTime
(
holiday
.
observedStartDate
()));
eventData
.
setEndDateTime
(
QDateTime
(
holiday
.
observedEndDate
()));
eventData
.
setStartDateTime
(
holiday
.
observedStartDate
()
.
startOfDay
(
));
eventData
.
setEndDateTime
(
holiday
.
observedEndDate
()
.
endOfDay
(
));
eventData
.
setIsAllDay
(
true
);
eventData
.
setTitle
(
holiday
.
name
());
eventData
.
setEventType
(
CalendarEvents
::
EventData
::
Holiday
);
...
...
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