28 lines
497 B
C++
28 lines
497 B
C++
#include "Model.hpp"
|
|
|
|
#include <QSettings>
|
|
|
|
#include <wobjectimpl.h>
|
|
W_OBJECT_IMPL(Hardware::Settings::Model)
|
|
|
|
namespace Hardware
|
|
{
|
|
namespace Settings
|
|
{
|
|
namespace Parameters
|
|
{
|
|
SETTINGS_PARAMETER_IMPL(Enabled){QStringLiteral("Hardware/Enabled"), false};
|
|
static auto list()
|
|
{
|
|
return std::tie(Enabled);
|
|
}
|
|
}
|
|
|
|
Model::Model(QSettings& set, const score::ApplicationContext& ctx)
|
|
{
|
|
score::setupDefaultSettings(set, Parameters::list(), *this);
|
|
}
|
|
|
|
SCORE_SETTINGS_PARAMETER_CPP(bool, Model, Enabled)
|
|
}
|
|
}
|