1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 04:10:06 +00:00
OpenMW/apps/opencs/view/prefs/pagebase.cpp
2017-05-07 16:51:11 +12:00

21 lines
434 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());
refresh();
}