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
63be3163
Commit
63be3163
authored
Feb 22, 2022
by
Alexander Lohnau
💬
Browse files
Fix loading of searchbar plugin
parent
f23ed146
Changes
4
Hide whitespace changes
Inline
Side-by-side
libkonq/src/konq_kpart_plugin.cpp
View file @
63be3163
...
...
@@ -160,7 +160,7 @@ void Plugin::setMetaData(const KPluginMetaData &metaData)
void
Plugin
::
loadPlugins
(
QObject
*
parent
,
KXMLGUIClient
*
parentGUIClient
,
const
QString
&
componentName
)
{
KConfigGroup
cfgGroup
(
KSharedConfig
::
openConfig
(
componentName
+
QLatin1String
(
"rc"
)),
"KParts Plugins"
);
const
QList
<
PluginInfo
>
plugins
=
pluginInfos
(
componentName
);
const
QList
<
PluginInfo
>
plugins
=
pluginInfos
(
componentName
)
<<
pluginInfos
(
"konqueror"
)
;
for
(
const
auto
&
pluginInfo
:
plugins
)
{
QDomElement
docElem
=
pluginInfo
.
m_document
.
documentElement
();
...
...
plugins/searchbar/CMakeLists.txt
View file @
63be3163
...
...
@@ -23,4 +23,4 @@ kcoreaddons_desktop_to_json(searchbarplugin searchbar.desktop)
target_link_libraries
(
searchbarplugin KF5::I18n KF5::TextWidgets KF5::Parts Qt5::Script KF5Konq
)
install
(
TARGETS searchbarplugin DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
/konqueror/kpartplugins
)
install
(
FILES searchbar.rc DESTINATION
${
KDE_INSTALL_DATADIR
}
/konqueror/partsrc
c
files
)
install
(
FILES searchbar
plugin
.rc DESTINATION
${
KDE_INSTALL_DATADIR
}
/konqueror/partsrcfiles
)
plugins/searchbar/searchbar.cpp
View file @
63be3163
...
...
@@ -112,7 +112,7 @@ SearchBarPlugin::~SearchBarPlugin()
bool
SearchBarPlugin
::
eventFilter
(
QObject
*
o
,
QEvent
*
e
)
{
if
(
qobject_cast
<
KMainWindow
*>
(
o
)
&&
KParts
::
PartActivateEvent
::
test
(
e
))
{
if
(
KParts
::
PartActivateEvent
::
test
(
e
))
{
KParts
::
PartActivateEvent
*
partEvent
=
static_cast
<
KParts
::
PartActivateEvent
*>
(
e
);
KParts
::
ReadOnlyPart
*
part
=
qobject_cast
<
KParts
::
ReadOnlyPart
*>
(
partEvent
->
part
());
//qCDebug(SEARCHBAR_LOG) << "Embedded part changed to " << part;
...
...
plugins/searchbar/searchbar.rc
→
plugins/searchbar/searchbar
plugin
.rc
View file @
63be3163
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