┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/itemactions/setfoldericonitemaction.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2025-06-09 12:16:36 +0000
committerMéven Car <[email protected]>2025-06-09 12:16:36 +0000
commit697d58e9727e229abb81956d27a05d1f02d8c775 (patch)
tree639c00be3e8f26f221379fe33accc44c49f9740a /src/itemactions/setfoldericonitemaction.h
parent2369b0c46ccab88e1cee310de22def6aaff41b00 (diff)
Add a SetFolderIcon ItemAction plugin
To allow to change folder icon from the context menu. CCBUG: 467221
Diffstat (limited to 'src/itemactions/setfoldericonitemaction.h')
-rw-r--r--src/itemactions/setfoldericonitemaction.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/itemactions/setfoldericonitemaction.h b/src/itemactions/setfoldericonitemaction.h
new file mode 100644
index 000000000..c2ebbd521
--- /dev/null
+++ b/src/itemactions/setfoldericonitemaction.h
@@ -0,0 +1,25 @@
+/*
+ * SPDX-FileCopyrightText: 2025 Méven Car <[email protected]>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#pragma once
+
+#include <KAbstractFileItemActionPlugin>
+#include <KFileItemListProperties>
+
+class SetFolderIconItemAction : public KAbstractFileItemActionPlugin
+{
+ Q_OBJECT
+
+public:
+ SetFolderIconItemAction(QObject *parent);
+
+ QList<QAction *> actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override;
+
+private:
+ void setFolderIcon(bool check);
+ QUrl m_url;
+ QUrl m_localUrl;
+};