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