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
KDE PIM Add-ons
Commits
d41a0589
Commit
d41a0589
authored
May 29, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to hide/show action in headerstyle
parent
3924ce72
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleplugin.cpp
...leeheaderstyleplugin/defaultgrantleeheaderstyleplugin.cpp
+7
-0
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleplugin.h
...ntleeheaderstyleplugin/defaultgrantleeheaderstyleplugin.h
+1
-0
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/settings/defaultgrantleeheaderstyleplugin.kcfg
...tyleplugin/settings/defaultgrantleeheaderstyleplugin.kcfg
+1
-1
No files found.
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleplugin.cpp
View file @
d41a0589
...
...
@@ -17,6 +17,7 @@
#include "defaultgrantleeheaderstyleinterface.h"
#include "defaultgrantleeheaderstyleplugin.h"
#include "globalsettings_base.h"
#include <messageviewer/grantleeheaderstyle.h>
#include "defaultgrantleeheaderstrategy.h"
#include <kpluginfactory.h>
...
...
@@ -29,6 +30,7 @@ DefaultGrantleeHeaderStylePlugin::DefaultGrantleeHeaderStylePlugin(QObject *pare
mHeaderStyle
(
new
GrantleeHeaderStyle
),
mHeaderStrategy
(
new
DefaultGrantleeHeaderStrategy
)
{
initializePlugin
();
}
DefaultGrantleeHeaderStylePlugin
::~
DefaultGrantleeHeaderStylePlugin
()
...
...
@@ -36,6 +38,11 @@ DefaultGrantleeHeaderStylePlugin::~DefaultGrantleeHeaderStylePlugin()
}
void
DefaultGrantleeHeaderStylePlugin
::
initializePlugin
()
{
mHeaderStyle
->
setShowMailAction
(
DefaultGrantleeHeaderStylePluginSettings
::
self
()
->
showActionMail
());
}
HeaderStyle
*
DefaultGrantleeHeaderStylePlugin
::
headerStyle
()
const
{
return
mHeaderStyle
;
...
...
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleplugin.h
View file @
d41a0589
...
...
@@ -37,6 +37,7 @@ public:
HeaderStyleInterface
*
createView
(
KActionMenu
*
menu
,
QActionGroup
*
actionGroup
,
KActionCollection
*
ac
,
QObject
*
parent
=
Q_NULLPTR
)
Q_DECL_OVERRIDE
;
QString
name
()
const
Q_DECL_OVERRIDE
;
private:
void
initializePlugin
();
GrantleeHeaderStyle
*
mHeaderStyle
;
HeaderStrategy
*
mHeaderStrategy
;
};
...
...
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/settings/defaultgrantleeheaderstyleplugin.kcfg
View file @
d41a0589
...
...
@@ -8,7 +8,7 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/sta
<default>
5.2
</default>
</entry>
<entry
name=
"ShowActionMail"
type=
"bool"
>
<default>
tru
e
</default>
<default>
fals
e
</default>
</entry>
</group>
...
...
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