Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Calendar Support
Commits
2ac1a783
Commit
2ac1a783
authored
Jul 01, 2021
by
Glen Ditchfield
🐛
Browse files
Sort printed journal entries by date
parent
b48c27a3
Pipeline
#68212
passed with stage
in 6 minutes and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/printing/journalprint.cpp
View file @
2ac1a783
...
@@ -88,7 +88,7 @@ void CalPrintJournal::setDateRange(const QDate &from, const QDate &to)
...
@@ -88,7 +88,7 @@ void CalPrintJournal::setDateRange(const QDate &from, const QDate &to)
void
CalPrintJournal
::
print
(
QPainter
&
p
,
int
width
,
int
height
)
void
CalPrintJournal
::
print
(
QPainter
&
p
,
int
width
,
int
height
)
{
{
int
x
=
0
,
y
=
0
;
int
x
=
0
,
y
=
0
;
KCalendarCore
::
Journal
::
List
journals
(
mCalendar
->
journals
());
KCalendarCore
::
Journal
::
List
journals
(
mCalendar
->
journals
(
KCalendarCore
::
JournalSortDate
,
KCalendarCore
::
SortDirectionAscending
));
if
(
mUseDateRange
)
{
if
(
mUseDateRange
)
{
const
KCalendarCore
::
Journal
::
List
allJournals
=
journals
;
const
KCalendarCore
::
Journal
::
List
allJournals
=
journals
;
journals
.
clear
();
journals
.
clear
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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