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
KRDC
Commits
f25efb36
Commit
f25efb36
authored
Jan 05, 2022
by
Alexander Lohnau
💬
Browse files
Simplify code using K_PLUGIN_CLASS_WITH_JSON
This way we do not need to explicitly specify the factory name.
parent
c95ac821
Pipeline
#121279
passed with stage
in 49 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
konsole/konsoleviewfactory.cpp
View file @
f25efb36
...
...
@@ -8,7 +8,7 @@
#include <KLocalizedString>
K_PLUGIN_
FACTORY
_WITH_JSON
(
K
rdc
Factory
,
"krdc_konsole.json"
,
registerPlugin
<
KonsoleViewFactory
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
K
onsoleView
Factory
,
"krdc_konsole.json"
)
KonsoleViewFactory
::
KonsoleViewFactory
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
RemoteViewFactory
(
parent
)
...
...
rdp/rdpviewfactory.cpp
View file @
f25efb36
...
...
@@ -10,7 +10,7 @@
#include <KPluginFactory>
K_PLUGIN_
FACTORY
_WITH_JSON
(
Krdc
Factory
,
"krdc_rdp.json"
,
registerPlugin
<
RdpViewFactory
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
RdpView
Factory
,
"krdc_rdp.json"
)
RdpViewFactory
::
RdpViewFactory
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
RemoteViewFactory
(
parent
)
...
...
test/testviewfactory.cpp
View file @
f25efb36
...
...
@@ -8,7 +8,7 @@
#include <KLocalizedString>
K_PLUGIN_
FACTORY
_WITH_JSON
(
Krdc
Factory
,
"krdc_test.json"
,
registerPlugin
<
TestViewFactory
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
TestView
Factory
,
"krdc_test.json"
)
TestViewFactory
::
TestViewFactory
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
RemoteViewFactory
(
parent
)
...
...
vnc/vncviewfactory.cpp
View file @
f25efb36
...
...
@@ -9,7 +9,7 @@
#include <KPluginFactory>
K_PLUGIN_
FACTORY
_WITH_JSON
(
Krdc
Factory
,
"krdc_vnc.json"
,
registerPlugin
<
VncViewFactory
>
();
)
K_PLUGIN_
CLASS
_WITH_JSON
(
VncView
Factory
,
"krdc_vnc.json"
)
VncViewFactory
::
VncViewFactory
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
RemoteViewFactory
(
parent
)
...
...
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