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
3f49140a
Commit
3f49140a
authored
Jun 03, 2022
by
Volker Krause
Browse files
Explicitly list relevant lunar phase events
BUG: 454801
parent
51d71ab6
Pipeline
#184825
passed with stage
in 1 minute and 37 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
plasmacalendarplugins/astronomical/astronomicaleventsplugin.cpp
View file @
3f49140a
...
...
@@ -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
));
...
...
Volker Krause
@vkrause
mentioned in commit
966967d7
·
Jun 03, 2022
mentioned in commit
966967d7
mentioned in commit 966967d7588933eeb8ab29360625469b82b1bb68
Toggle commit 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