score-addon-hardware/Hardware/Settings/Model.cpp

29 lines
497 B
C++
Raw Normal View History

#include "Model.hpp"
#include <QSettings>
#include <wobjectimpl.h>
W_OBJECT_IMPL(Hardware::Settings::Model)
namespace Hardware
{
namespace Settings
{
namespace Parameters
{
SETTINGS_PARAMETER_IMPL(Device){QStringLiteral("Hardware/Device"), "None"};
static auto list()
{
return std::tie(Device);
}
}
Model::Model(QSettings& set, const score::ApplicationContext& ctx)
{
score::setupDefaultSettings(set, Parameters::list(), *this);
}
SCORE_SETTINGS_PARAMETER_CPP(QString, Model, Device)
}
}