Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
271f2312
Commit
271f2312
authored
Jan 31, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix load default theme
parent
db1b9132
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/CMakeLists.txt
...erplugins/defaultgrantleeheaderstyleplugin/CMakeLists.txt
+1
-1
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleinterface.cpp
...headerstyleplugin/defaultgrantleeheaderstyleinterface.cpp
+1
-0
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/kmail_default.desktop
...grantleeheaderstyleplugin/theme/5.2/kmail_default.desktop
+0
-0
No files found.
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/CMakeLists.txt
View file @
271f2312
...
...
@@ -18,4 +18,4 @@ target_link_libraries(messageviewer_defaultgrantleeheaderstyleplugin
)
install
(
TARGETS messageviewer_defaultgrantleeheaderstyleplugin DESTINATION
${
PLUGIN_INSTALL_DIR
}
/messageviewer
)
install
(
DIRECTORY theme/5.2 DESTINATION
${
KDE_INSTALL_DATADIR
}
/messageviewer/themes/
)
install
(
DIRECTORY theme/5.2 DESTINATION
${
KDE_INSTALL_DATADIR
}
/messageviewer/
default
themes/
)
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/defaultgrantleeheaderstyleinterface.cpp
View file @
271f2312
...
...
@@ -42,6 +42,7 @@ void DefaultGrantleeHeaderStyleInterface::createAction(KActionMenu *menu, QActio
const
QStringList
defaultThemePath
=
QStandardPaths
::
locateAll
(
QStandardPaths
::
GenericDataLocation
,
QStringLiteral
(
"messageviewer/defaultthemes/"
),
QStandardPaths
::
LocateDirectory
);
if
(
!
defaultThemePath
.
isEmpty
())
{
const
QString
themeName
=
DefaultGrantleeHeaderStylePluginSettings
::
self
()
->
themeName
();
qDebug
()
<<
" themeName"
<<
themeName
<<
"defaultThemePath.at(0)"
<<
defaultThemePath
.
at
(
0
);
mDefaultTheme
=
GrantleeTheme
::
ThemeManager
::
loadTheme
(
defaultThemePath
.
at
(
0
),
themeName
,
QStringLiteral
(
"kmail_default.desktop"
));
...
...
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/
header
.desktop
→
plugins/messageviewerheaderplugins/defaultgrantleeheaderstyleplugin/theme/5.2/
kmail_default
.desktop
View file @
271f2312
File moved
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