openmw-tes3coop/apps/opencs/model/prefs/setting.cpp

33 lines
649 B
C++
Raw Normal View History

2015-12-08 16:21:58 +00:00
#include "setting.hpp"
#include "category.hpp"
#include "state.hpp"
Settings::Manager& CSMPrefs::Setting::getValues()
{
return *mValues;
}
CSMPrefs::Setting::Setting (Category *parent, Settings::Manager *values,
const std::string& key, const std::string& label)
: QObject (parent->getState()), mParent (parent), mValues (values), mKey (key), mLabel (label)
{}
CSMPrefs::Setting:: ~Setting() {}
const CSMPrefs::Category *CSMPrefs::Setting::getParent() const
{
return mParent;
}
const std::string& CSMPrefs::Setting::getKey() const
{
return mKey;
}
const std::string& CSMPrefs::Setting::getLabel() const
{
return mLabel;
}