Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KmPlot
Commits
e1fdb544
Commit
e1fdb544
authored
Oct 17, 2022
by
Nicolas Fella
Browse files
Fix loading part in with Qt6
parent
e0c9219c
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmplot/kmplot.cpp
View file @
e1fdb544
...
...
@@ -55,7 +55,9 @@ KmPlot::KmPlot(const QCommandLineParser &parser)
// this routine will find and load our Part. it finds the Part by
// name which is a bad idea usually.. but it's alright in this
// case since our Part is made for this Shell
const
auto
result
=
KPluginFactory
::
instantiatePlugin
<
KParts
::
ReadWritePart
>
(
KPluginMetaData
(
QStringLiteral
(
"kf5/parts/kmplotpart"
)),
this
);
const
auto
result
=
KPluginFactory
::
instantiatePlugin
<
KParts
::
ReadWritePart
>
(
KPluginMetaData
(
QStringLiteral
(
"kf"
QT_STRINGIFY
(
QT_VERSION_MAJOR
)
"/parts/kmplotpart"
)),
this
);
if
(
result
)
{
m_part
=
result
.
plugin
;
// tell the KParts::MainWindow that this is indeed the main widget
...
...
Nicolas Fella
@nicolasfella
mentioned in merge request
utilities/ark!148 (merged)
·
Oct 20, 2022
mentioned in merge request
utilities/ark!148 (merged)
mentioned in merge request utilities/ark!148
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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