mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 21:23:52 +00:00
32 lines
649 B
C++
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;
|
|
}
|