Skip to content

Commit

Permalink
Adapt to KF6 KPackage API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzag committed May 6, 2023
1 parent d2bf310 commit 54bdfe9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/plugins/kpackage-integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ target_sources(packagestructure_dynamicwallpaper PRIVATE
target_link_libraries(packagestructure_dynamicwallpaper
Qt6::Core

KF6::I18n
KF6::Package
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "dynamicwallpaperpackagestructure.h"

#include <KLocalizedString>

#include <QFileInfo>

DynamicWallpaperPackageStructure::DynamicWallpaperPackageStructure(QObject *parent, const QVariantList &args)
Expand All @@ -18,8 +16,7 @@ DynamicWallpaperPackageStructure::DynamicWallpaperPackageStructure(QObject *pare
void DynamicWallpaperPackageStructure::initPackage(KPackage::Package *package)
{
package->addDirectoryDefinition(QByteArrayLiteral("images"),
QStringLiteral("images/"),
i18n("Dynamic wallpaper files"));
QStringLiteral("images/"));
package->setRequired(QByteArrayLiteral("images"), true);
}

Expand All @@ -34,8 +31,7 @@ void DynamicWallpaperPackageStructure::pathChanged(KPackage::Package *package)
if (!fileInfo.exists())
continue;
package->addFileDefinition(QByteArrayLiteral("dynamic"),
QStringLiteral("images/dynamic") + fileFormat,
i18n("Dynamic wallpaper file"));
QStringLiteral("images/dynamic") + fileFormat);
package->setRequired(QByteArrayLiteral("dynamic"), true);
break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
{
"KPackageStructure": "KPackage/PackageStructure",
"KPlugin": {
"Authors": [
{
"Email": "[email protected]",
"Name": "Vlad Zahorodnii"
}
],
"Name": "Dynamic Wallpaper",
"Version": "1"
}
"KPackageStructure": "KPackage/PackageStructure"
}

0 comments on commit 54bdfe9

Please sign in to comment.