2015-12-08 11:04:45 +00:00
|
|
|
|
|
|
|
#include "pagebase.hpp"
|
|
|
|
|
|
|
|
#include "../../model/prefs/category.hpp"
|
2017-05-06 08:18:31 +00:00
|
|
|
#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;
|
|
|
|
}
|
2017-05-06 08:18:31 +00:00
|
|
|
|
|
|
|
void CSVPrefs::PageBase::resetCategory()
|
|
|
|
{
|
|
|
|
CSMPrefs::get().resetCategory(getCategory().getKey());
|
2017-05-07 04:51:11 +00:00
|
|
|
refresh();
|
2017-05-06 08:18:31 +00:00
|
|
|
}
|