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
PIM Messagelib
Commits
d18877af
Commit
d18877af
authored
Jan 13, 2020
by
Laurent Montel
Browse files
Remove unused code
parent
e3dd0446
Changes
4
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/header/grantleeheaderformatter.cpp
View file @
d18877af
...
...
@@ -397,9 +397,6 @@ QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grant
if
(
!
style
->
vCardName
().
isEmpty
())
{
headerObject
.
insert
(
QStringLiteral
(
"vcardname"
),
style
->
vCardName
());
}
if
(
!
style
->
collectionName
().
isEmpty
())
{
headerObject
.
insert
(
QStringLiteral
(
"collectionname"
),
style
->
collectionName
());
}
if
(
isPrinting
)
{
//provide a bit more left padding when printing
...
...
messageviewer/src/header/headerstyle.cpp
View file @
d18877af
...
...
@@ -50,7 +50,6 @@ public:
GrantleeTheme
::
Theme
mTheme
;
const
HeaderStrategy
*
mStrategy
=
nullptr
;
QString
mVCardName
;
QString
mCollectionName
;
QString
mAttachmentHtml
;
MimeTreeParser
::
NodeHelper
*
mNodeHelper
=
nullptr
;
QObject
*
mSourceObject
=
nullptr
;
...
...
@@ -172,16 +171,6 @@ GrantleeTheme::Theme HeaderStyle::theme() const
return
d
->
mTheme
;
}
void
HeaderStyle
::
setCollectionName
(
const
QString
&
name
)
{
d
->
mCollectionName
=
name
;
}
QString
HeaderStyle
::
collectionName
()
const
{
return
d
->
mCollectionName
;
}
bool
HeaderStyle
::
readOnlyMessage
()
const
{
return
d
->
mReadOnlyMessage
;
...
...
messageviewer/src/header/headerstyle.h
View file @
d18877af
...
...
@@ -108,8 +108,6 @@ public:
void
setTheme
(
const
GrantleeTheme
::
Theme
&
theme
);
Q_REQUIRED_RESULT
GrantleeTheme
::
Theme
theme
()
const
;
void
setCollectionName
(
const
QString
&
name
);
Q_REQUIRED_RESULT
QString
collectionName
()
const
;
Q_REQUIRED_RESULT
bool
readOnlyMessage
()
const
;
void
setReadOnlyMessage
(
bool
readOnlyMessage
);
...
...
messageviewer/src/viewer/viewer_p.cpp
View file @
d18877af
...
...
@@ -952,10 +952,7 @@ QString ViewerPrivate::writeMessageHeader(KMime::Message *aMsg, KMime::Content *
status
.
setStatusFromFlags
(
mMessageItem
.
flags
());
headerStylePlugin
()
->
headerStyle
()
->
setMessageStatus
(
status
);
headerStylePlugin
()
->
headerStyle
()
->
setCollectionName
(
mMessageItem
.
parentCollection
().
displayName
());
}
else
{
headerStylePlugin
()
->
headerStyle
()
->
setCollectionName
(
QString
());
headerStylePlugin
()
->
headerStyle
()
->
setReadOnlyMessage
(
true
);
}
...
...
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