forked from mirror/openmw-tes3mp
33 lines
649 B
C++
33 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;
|
||
|
}
|