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
Kalendar
Commits
c1b47a4a
Commit
c1b47a4a
authored
Jan 15, 2022
by
Volker Krause
Browse files
Don't show start time for all day incidences
Fixes
#150
.
parent
9cb796be
Pipeline
#124191
passed with stage
in 4 minutes and 55 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kalendarac/alarmnotification.cpp
View file @
c1b47a4a
...
...
@@ -57,7 +57,7 @@ void AlarmNotification::send(KalendarAlarmClient *client, const KCalendarCore::I
}
else
if
(
incidence
->
type
()
==
KCalendarCore
::
Incidence
::
TypeTodo
&&
!
incidence
->
dtStart
().
isValid
())
{
const
auto
todo
=
incidence
.
staticCast
<
KCalendarCore
::
Todo
>
();
m_notification
->
setText
(
i18n
(
"Task due at %1"
,
QLocale
().
toString
(
todo
->
dtDue
().
time
(),
QLocale
::
NarrowFormat
)));
}
else
{
}
else
if
(
!
incidence
->
allDay
())
{
const
QString
incidenceType
=
incidence
->
type
()
==
KCalendarCore
::
Incidence
::
TypeTodo
?
i18n
(
"Task"
)
:
i18n
(
"Event"
);
m_notification
->
setText
(
i18nc
(
"Event starts at 10:00"
,
"%1 starts at %2"
,
incidenceType
,
QLocale
().
toString
(
incidence
->
dtStart
().
time
(),
QLocale
::
NarrowFormat
)));
...
...
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