1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 21:23:52 +00:00
openmw/apps/opencs/model/prefs/setting.cpp
2015-12-08 17:21:58 +01:00

32 lines
649 B
C++

#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;
}