Files
r3ctl/r3ctlsettings.h
2021-06-24 20:00:06 +02:00

25 lines
425 B
C++

#pragma once
// Qt includes
#include <QSettings>
class R3CtlSettings : public QSettings
{
Q_OBJECT
Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged)
public:
using QSettings::QSettings;
QString theme() const;
bool setTheme(const QString &theme);
Q_SIGNALS:
void saveErrorOccured();
void themeChanged(const QString &theme);
private:
static const QString m_theme;
};