1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 10:23:56 +00:00
openmw/apps/opencs/view/prefs/pagebase.cpp
2017-05-06 20:18:31 +12:00

19 lines
419 B
C++

#include "pagebase.hpp"
#include "../../model/prefs/category.hpp"
#include "../../model/prefs/state.hpp"
CSVPrefs::PageBase::PageBase (CSMPrefs::Category& category, QWidget *parent)
: QScrollArea (parent), mCategory (category)
{}
CSMPrefs::Category& CSVPrefs::PageBase::getCategory()
{
return mCategory;
}
void CSVPrefs::PageBase::resetCategory()
{
CSMPrefs::get().resetCategory(getCategory().getKey());
}