config moved to c++ plugin, removed old qml + fileview implementation

This commit is contained in:
2026-08-13 02:25:26 +02:00
parent c29b91cd26
commit 3cd3209b28
341 changed files with 4851 additions and 3502 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include "ConfigSection.hpp"
#include <qqmlregistration.h>
#include <QVariantList>
class Screenshot : public ConfigSection {
Q_OBJECT
QML_UNCREATABLE("Instantiated internally by Config")
// Property names below must match the JSON keys exactly (the JSON here
// uses snake_case for these particular keys, so we do too).
CFG_PROPERTY(bool, enable_pp, EnablePp)
CFG_PROPERTY(QString, mode, Mode)
CFG_PROPERTY(int, radius, Radius)
CFG_PROPERTY(bool, rounding, Rounding)
CFG_PROPERTY(bool, saveOnCopy, SaveOnCopy)
CFG_PROPERTY(bool, shadow, Shadow)
CFG_PROPERTY(int, shadow_blur, ShadowBlur)
// [r, g, b, a]
CFG_PROPERTY(QVariantList, shadow_color, ShadowColor)
CFG_PROPERTY(int, shadow_offset_x, ShadowOffsetX)
CFG_PROPERTY(int, shadow_offset_y, ShadowOffsetY)
public:
explicit Screenshot(QObject *parent = nullptr);
};