openmw-tes3coop/apps/opencs/view/prefs/pagebase.cpp

21 lines
434 B
C++
Raw Normal View History

2015-12-08 11:04:45 +00:00
#include "pagebase.hpp"
#include "../../model/prefs/category.hpp"
#include "../../model/prefs/state.hpp"
2015-12-08 11:04:45 +00:00
CSVPrefs::PageBase::PageBase (CSMPrefs::Category& category, QWidget *parent)
: QScrollArea (parent), mCategory (category)
2015-12-08 16:21:58 +00:00
{}
2015-12-08 11:04:45 +00:00
CSMPrefs::Category& CSVPrefs::PageBase::getCategory()
{
return mCategory;
}
void CSVPrefs::PageBase::resetCategory()
{
CSMPrefs::get().resetCategory(getCategory().getKey());
refresh();
}