Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Calendar Support
Commits
694a761b
Commit
694a761b
authored
Nov 14, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some clazy warning
parent
4d0a53a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/utils.cpp
src/utils.cpp
+5
-5
No files found.
src/utils.cpp
View file @
694a761b
...
...
@@ -534,23 +534,23 @@ QString CalendarSupport::displayName(Akonadi::ETMCalendar *calendar, const Akona
while
(
p
!=
Akonadi
::
Collection
::
root
())
{
Akonadi
::
Collection
tCol
=
calendar
->
collection
(
p
.
id
());
const
QString
tName
=
tCol
.
name
();
if
(
tName
.
toLower
().
startsWith
(
QStringLiteral
(
"shared.cal"
)))
{
if
(
tName
.
startsWith
(
QStringLiteral
(
"shared.cal"
)
,
Qt
::
CaseInsensitive
))
{
ownerStr
=
QStringLiteral
(
"Shared"
);
nameStr
=
cName
;
typeStr
=
QStringLiteral
(
"Calendar"
);
break
;
}
else
if
(
tName
.
toLower
().
startsWith
(
QStringLiteral
(
"shared.tasks"
))
||
tName
.
toLower
().
startsWith
(
QStringLiteral
(
"shared.todo"
)))
{
}
else
if
(
tName
.
startsWith
(
QStringLiteral
(
"shared.tasks"
)
,
Qt
::
CaseInsensitive
)
||
tName
.
startsWith
(
QStringLiteral
(
"shared.todo"
)
,
Qt
::
CaseInsensitive
))
{
ownerStr
=
QStringLiteral
(
"Shared"
);
nameStr
=
cName
;
typeStr
=
QStringLiteral
(
"Tasks"
);
break
;
}
else
if
(
tName
.
toLower
().
startsWith
(
QStringLiteral
(
"shared.journal"
)))
{
}
else
if
(
tName
.
startsWith
(
QStringLiteral
(
"shared.journal"
)
,
Qt
::
CaseInsensitive
))
{
ownerStr
=
QStringLiteral
(
"Shared"
);
nameStr
=
cName
;
typeStr
=
QStringLiteral
(
"Journal"
);
break
;
}
else
if
(
tName
.
toLower
().
startsWith
(
QStringLiteral
(
"shared.notes"
)))
{
}
else
if
(
tName
.
startsWith
(
QStringLiteral
(
"shared.notes"
)
,
Qt
::
CaseInsensitive
))
{
ownerStr
=
QStringLiteral
(
"Shared"
);
nameStr
=
cName
;
typeStr
=
QStringLiteral
(
"Notes"
);
...
...
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