26 lines
607 B
C++
26 lines
607 B
C++
#pragma once
|
|
#include "ConfigSection.hpp"
|
|
#include <qqmlregistration.h>
|
|
|
|
class SidebarSizes : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(int, width, Width)
|
|
|
|
public:
|
|
explicit SidebarSizes(QObject *parent = nullptr);
|
|
};
|
|
|
|
class Sidebar : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(int, dragThreshold, DragThreshold)
|
|
CFG_PROPERTY(bool, enabled, Enabled)
|
|
CFG_SECTION(SidebarSizes, sizes, Sizes)
|
|
|
|
public:
|
|
explicit Sidebar(QObject *parent = nullptr);
|
|
};
|