Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Calendar Support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Calendar Support
Commits
625ae46f
Commit
625ae46f
authored
Feb 23, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use isEmpty()
parent
0c68dcd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/printing/calprintdefaultplugins.cpp
src/printing/calprintdefaultplugins.cpp
+6
-6
No files found.
src/printing/calprintdefaultplugins.cpp
View file @
625ae46f
...
...
@@ -336,7 +336,7 @@ void CalPrintIncidence::print(QPainter &p, int width, int height)
QRect
alarmBox
(
timesBox
.
left
()
+
padding
(),
h
+
padding
(),
timesBox
.
right
()
-
padding
(),
lineHeight
);
KCalCore
::
Alarm
::
List
alarms
=
(
*
it
)
->
alarms
();
if
(
alarms
.
count
()
==
0
)
{
if
(
alarms
.
isEmpty
()
)
{
cap
=
i18n
(
"No reminders"
);
txt
.
clear
();
}
else
{
...
...
@@ -490,7 +490,7 @@ void CalPrintIncidence::print(QPainter &p, int width, int height)
}
else
{
QString
subitemCaption
;
if
(
relations
.
count
()
==
0
)
{
if
(
relations
.
isEmpty
()
)
{
subitemCaption
=
i18n
(
"No Subitems"
);
txt
.
clear
();
}
else
{
...
...
@@ -574,9 +574,9 @@ void CalPrintIncidence::print(QPainter &p, int width, int height)
}
if
(
mShowAttachments
&&
!
isJournal
)
{
KCalCore
::
Attachment
::
List
attachments
=
(
*
it
)
->
attachments
();
const
KCalCore
::
Attachment
::
List
attachments
=
(
*
it
)
->
attachments
();
QString
attachmentCaption
;
if
(
attachments
.
count
()
==
0
)
{
if
(
attachments
.
isEmpty
()
)
{
attachmentCaption
=
i18n
(
"No Attachments"
);
txt
.
clear
();
}
else
{
...
...
@@ -598,9 +598,9 @@ void CalPrintIncidence::print(QPainter &p, int width, int height)
captionFont
,
textFont
);
}
if
(
mShowAttendees
)
{
KCalCore
::
Attendee
::
List
attendees
=
(
*
it
)
->
attendees
();
const
KCalCore
::
Attendee
::
List
attendees
=
(
*
it
)
->
attendees
();
QString
attendeeCaption
;
if
(
attendees
.
count
()
==
0
)
{
if
(
attendees
.
isEmpty
()
)
{
attendeeCaption
=
i18n
(
"No Attendees"
);
}
else
{
attendeeCaption
=
i18np
(
"1 Attendee:"
,
...
...
Write
Preview
Markdown
is supported
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