config moved to c++ plugin, removed old qml + fileview implementation
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "ConfigSection.hpp"
|
||||
#include <qqmlregistration.h>
|
||||
|
||||
class LockSizes : public ConfigSection {
|
||||
Q_OBJECT
|
||||
QML_UNCREATABLE("Instantiated internally by Config")
|
||||
|
||||
CFG_PROPERTY(int, centerWidth, CenterWidth)
|
||||
CFG_PROPERTY(qreal, heightMult, HeightMult)
|
||||
CFG_PROPERTY(qreal, ratio, Ratio)
|
||||
|
||||
public:
|
||||
explicit LockSizes(QObject *parent = nullptr);
|
||||
};
|
||||
|
||||
class Lock : public ConfigSection {
|
||||
Q_OBJECT
|
||||
QML_UNCREATABLE("Instantiated internally by Config")
|
||||
|
||||
CFG_PROPERTY(int, blurAmount, BlurAmount)
|
||||
CFG_PROPERTY(bool, enableFprint, EnableFprint)
|
||||
CFG_PROPERTY(int, maxFprintTries, MaxFprintTries)
|
||||
CFG_PROPERTY(bool, recolorLogo, RecolorLogo)
|
||||
CFG_PROPERTY(bool, showNotifContent, ShowNotifContent)
|
||||
CFG_PROPERTY(bool, showNotifIcon, ShowNotifIcon)
|
||||
CFG_SECTION(LockSizes, sizes, Sizes)
|
||||
|
||||
public:
|
||||
explicit Lock(QObject *parent = nullptr);
|
||||
};
|
||||
Reference in New Issue
Block a user