diff --git a/src/imageformats/CMakeLists.txt b/src/imageformats/CMakeLists.txt index e96fed5..cd3deae 100644 --- a/src/imageformats/CMakeLists.txt +++ b/src/imageformats/CMakeLists.txt @@ -134,6 +134,9 @@ endif() ################################## kimageformats_add_plugin(kimg_qoi SOURCES qoi.cpp) +if (QT_MAJOR_VERSION STREQUAL "5") + install(FILES qoi.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR}/qimageioplugins/) +endif() ################################## diff --git a/src/imageformats/qoi.desktop b/src/imageformats/qoi.desktop new file mode 100644 index 0000000..504eddf --- /dev/null +++ b/src/imageformats/qoi.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Service +X-KDE-ServiceTypes=QImageIOPlugins +X-KDE-ImageFormat=qoi +X-KDE-MimeType=image/qoi +X-KDE-Read=true +X-KDE-Write=false