29 lines
773 B
C++
29 lines
773 B
C++
#pragma once
|
|
#include "ConfigSection.hpp"
|
|
#include <qqmlregistration.h>
|
|
|
|
class ClipboardSizes : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(int, itemHeight, ItemHeight)
|
|
CFG_PROPERTY(int, minPreviewWidth, MinPreviewWidth)
|
|
CFG_PROPERTY(int, previewWidth, PreviewWidth)
|
|
CFG_PROPERTY(int, width, Width)
|
|
|
|
public:
|
|
explicit ClipboardSizes(QObject *parent = nullptr);
|
|
};
|
|
|
|
class Clipboard : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(bool, enabled, Enabled)
|
|
CFG_PROPERTY(int, maxEntriesShown, MaxEntriesShown)
|
|
CFG_SECTION(ClipboardSizes, sizes, Sizes)
|
|
|
|
public:
|
|
explicit Clipboard(QObject *parent = nullptr);
|
|
};
|