Commit 15879016 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix adapt for loading plugin in kf6

parent 2776bcbd
Pipeline #198819 passed with stage
in 6 minutes
......@@ -275,7 +275,7 @@ ki18n_install(po)
if (KF5DocTools_FOUND)
kdoctools_install(po)
endif()
install(TARGETS kigpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
install(TARGETS kigpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/parts)
install(FILES org.kde.kig.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
# unit tests
......
......@@ -25,7 +25,7 @@
static int convertToNative( const QUrl &file, const QByteArray& outfile )
{
KPluginLoader libraryLoader( QStringLiteral("kf5/parts/kigpart") );
KPluginLoader libraryLoader( QStringLiteral("kf" QT_STRINGIFY(QT_VERSION_MAJOR)) + QStringLiteral("/parts/kigpart") );
QLibrary library( libraryLoader.fileName() );
int ( *converterfunction )( const QUrl&, const QByteArray& );
converterfunction = ( int ( * )( const QUrl&, const QByteArray& ) ) library.resolve( "convertToNative" );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment