mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:23:56 +00:00
19 lines
419 B
C++
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());
|
|
}
|