config moved to c++ plugin, removed old qml + fileview implementation
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
#include "ConfigSection.hpp"
|
||||
#include <qqmlregistration.h>
|
||||
|
||||
class NotifsSizes : public ConfigSection {
|
||||
Q_OBJECT
|
||||
QML_UNCREATABLE("Instantiated internally by Config")
|
||||
|
||||
CFG_PROPERTY(int, badge, Badge)
|
||||
CFG_PROPERTY(int, image, Image)
|
||||
CFG_PROPERTY(int, width, Width)
|
||||
|
||||
public:
|
||||
explicit NotifsSizes(QObject *parent = nullptr);
|
||||
};
|
||||
|
||||
class Notifs : public ConfigSection {
|
||||
Q_OBJECT
|
||||
QML_UNCREATABLE("Instantiated internally by Config")
|
||||
|
||||
CFG_PROPERTY(bool, actionOnClick, ActionOnClick)
|
||||
CFG_PROPERTY(int, appNotifCooldown, AppNotifCooldown)
|
||||
CFG_PROPERTY(qreal, clearThreshold, ClearThreshold)
|
||||
CFG_PROPERTY(int, defaultExpireTimeout, DefaultExpireTimeout)
|
||||
CFG_PROPERTY(int, expandThreshold, ExpandThreshold)
|
||||
CFG_PROPERTY(bool, expire, Expire)
|
||||
CFG_PROPERTY(int, groupPreviewNum, GroupPreviewNum)
|
||||
CFG_PROPERTY(bool, openExpanded, OpenExpanded)
|
||||
CFG_PROPERTY(bool, showInFullscreen, ShowInFullscreen)
|
||||
CFG_SECTION(NotifsSizes, sizes, Sizes)
|
||||
|
||||
public:
|
||||
explicit Notifs(QObject *parent = nullptr);
|
||||
};
|
||||
Reference in New Issue
Block a user