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
Tusooa Zhu
Krita
Commits
bf6c67ae
Commit
bf6c67ae
authored
Sep 01, 2015
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port koplugin away from KDELibs4Support
parent
b7df5a69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
libs/koplugin/CMakeLists.txt
libs/koplugin/CMakeLists.txt
+7
-2
libs/koplugin/KoJsonTrader.cpp
libs/koplugin/KoJsonTrader.cpp
+1
-1
libs/koplugin/KoPluginLoader.cpp
libs/koplugin/KoPluginLoader.cpp
+4
-3
libs/koplugin/KoPluginLoader.h
libs/koplugin/KoPluginLoader.h
+4
-1
No files found.
libs/koplugin/CMakeLists.txt
View file @
bf6c67ae
...
...
@@ -12,8 +12,13 @@ endif()
add_library
(
koplugin SHARED
${
koplugin_LIB_SRCS
}
)
generate_export_header
(
koplugin BASE_NAME koplugin
)
target_link_libraries
(
koplugin KF5::KDELibs4Support KF5::Service Qt5::Core
)
target_link_libraries
(
koplugin LINK_INTERFACE_LIBRARIES KF5::Service Qt5::Core
)
target_link_libraries
(
koplugin
PUBLIC
Qt5::Core
PRIVATE
KF5::ConfigCore
KF5::CoreAddons
)
set_target_properties
(
koplugin PROPERTIES
VERSION
${
GENERIC_CALLIGRA_LIB_VERSION
}
SOVERSION
${
GENERIC_CALLIGRA_LIB_SOVERSION
}
...
...
libs/koplugin/KoJsonTrader.cpp
View file @
bf6c67ae
...
...
@@ -22,7 +22,7 @@
#include <QDebug>
#include <QApplication>
#include <Q
Core
Application>
#include <QPluginLoader>
#include <QJsonObject>
#include <QJsonArray>
...
...
libs/koplugin/KoPluginLoader.cpp
View file @
bf6c67ae
...
...
@@ -27,8 +27,8 @@
#include <QDebug>
#include <KConfig>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KGlobal>
#include <KPluginFactory>
class
Q_DECL_HIDDEN
KoPluginLoader
::
Private
...
...
@@ -47,10 +47,11 @@ KoPluginLoader::~KoPluginLoader()
delete
d
;
}
Q_GLOBAL_STATIC
(
KoPluginLoader
,
pluginLoaderInstance
)
KoPluginLoader
*
KoPluginLoader
::
instance
()
{
K_GLOBAL_STATIC
(
KoPluginLoader
,
s_instance
)
return
s_instance
;
return
pluginLoaderInstance
();
}
void
KoPluginLoader
::
load
(
const
QString
&
serviceType
,
const
QString
&
versionString
,
const
PluginsConfig
&
config
,
QObject
*
owner
)
...
...
libs/koplugin/KoPluginLoader.h
View file @
bf6c67ae
...
...
@@ -112,8 +112,11 @@ public:
*/
void
load
(
const
QString
&
serviceType
,
const
QString
&
versionString
=
QString
(),
const
PluginsConfig
&
config
=
PluginsConfig
(),
QObject
*
owner
=
0
);
private:
public:
/// DO NOT USE! Use instance() instead
// TODO: turn KoPluginLoader into namespace and do not expose object at all
KoPluginLoader
();
private:
KoPluginLoader
(
const
KoPluginLoader
&
);
KoPluginLoader
operator
=
(
const
KoPluginLoader
&
);
...
...
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