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 Add-ons
Commits
966967d7
Commit
966967d7
authored
Jun 03, 2022
by
Volker Krause
Committed by
Nate Graham
Jun 03, 2022
Browse files
Explicitly list relevant lunar phase events
BUG: 454801
(cherry picked from commit
3f49140a
)
parent
f1b04f9b
Pipeline
#184826
passed with stage
in 2 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plasmacalendarplugins/astronomical/astronomicaleventsplugin.cpp
View file @
966967d7
...
...
@@ -41,7 +41,8 @@ void AstronomicalEventsPlugin::loadEventsForDateRange(const QDate &startDate, co
for
(
QDate
date
=
startDate
;
date
<=
endDate
&&
date
.
isValid
();
date
=
date
.
addDays
(
1
))
{
if
(
m_lunarPhaseShown
)
{
const
auto
phase
=
KHolidays
::
LunarPhase
::
phaseAtDate
(
date
);
if
(
phase
!=
KHolidays
::
LunarPhase
::
None
)
{
if
(
phase
==
KHolidays
::
LunarPhase
::
NewMoon
||
phase
==
KHolidays
::
LunarPhase
::
FirstQuarter
||
phase
==
KHolidays
::
LunarPhase
::
LastQuarter
||
phase
==
KHolidays
::
LunarPhase
::
FullMoon
)
{
CalendarEvents
::
EventData
lunarPhaseData
;
lunarPhaseData
.
setIsAllDay
(
true
);
lunarPhaseData
.
setTitle
(
KHolidays
::
LunarPhase
::
phaseName
(
phase
));
...
...
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