Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
1eb59564
Verified
Commit
1eb59564
authored
Oct 10, 2021
by
Alexander Lohnau
💬
Browse files
kcm_history: Embed json metadata and install in konqueror_kcms namespace
parent
2a24aab3
Changes
2
Show whitespace changes
Inline
Side-by-side
sidebar/history_module/CMakeLists.txt
View file @
1eb59564
...
...
@@ -15,11 +15,8 @@ install(FILES konqsidebar_history.desktop DESTINATION ${KDE_INSTALL_DATADIR}/kon
set
(
kcm_history_SRCS kcmhistory.cpp ../../src/konqhistorysettings.cpp
)
ki18n_wrap_ui
(
kcm_history_SRCS history_dlg.ui
)
add_library
(
kcm_history MODULE
${
kcm_history_SRCS
}
)
kcoreaddons_add_plugin
(
kcm_history SOURCES
${
kcm_history_SRCS
}
INSTALL_NAMESPACE konqueror_kcms
)
kcoreaddons_desktop_to_json
(
kcm_history kcmhistory.desktop
)
# konquerorprivate is only needed for konqhistorysettings...
target_link_libraries
(
kcm_history konquerorprivate KF5::Konq KF5::Parts
)
install
(
TARGETS kcm_history DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
)
install
(
FILES kcmhistory.desktop DESTINATION
${
KDE_INSTALL_KSERVICES5DIR
}
)
target_link_libraries
(
kcm_history konquerorprivate KF5::Konq KF5::Parts
)
sidebar/history_module/kcmhistory.cpp
View file @
1eb59564
...
...
@@ -31,10 +31,7 @@
// Local
K_PLUGIN_FACTORY
(
KCMHistoryFactory
,
registerPlugin
<
HistorySidebarConfig
>
();
)
K_EXPORT_PLUGIN
(
KCMHistoryFactory
(
"kcmhistory"
))
K_PLUGIN_CLASS_WITH_JSON
(
HistorySidebarConfig
,
"kcmhistory.json"
)
HistorySidebarConfig
::
HistorySidebarConfig
(
QWidget
*
parent
,
const
QVariantList
&
)
:
KCModule
(
parent
,
QVariantList
())
...
...
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