2019-03-27 02:37:34 +01:00
|
|
|
#include "options.h"
|
|
|
|
|
|
|
|
LoggingCategory::LoggingCategory(QWidget *parent) :
|
|
|
|
OptionsCategory(parent)
|
|
|
|
{
|
|
|
|
setDisplayName(MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS);
|
|
|
|
setCategoryIcon("menu_log");
|
|
|
|
}
|
|
|
|
|
|
|
|
QVector<OptionsPage*> LoggingCategory::pages()
|
|
|
|
{
|
|
|
|
QVector<OptionsPage*> pages;
|
|
|
|
|
|
|
|
pages << new LoggingPage(this);
|
|
|
|
|
|
|
|
return pages;
|
|
|
|
}
|
|
|
|
|
|
|
|
LoggingPage::LoggingPage(QObject *parent) :
|
|
|
|
OptionsPage(parent)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget *LoggingPage::widget()
|
|
|
|
{
|
2019-04-14 17:10:13 +02:00
|
|
|
QWidget *widget = new QWidget;
|
2019-03-27 02:37:34 +01:00
|
|
|
FormLayout *layout = new FormLayout;
|
|
|
|
|
2019-04-14 17:10:13 +02:00
|
|
|
layout->add(MENU_ENUM_LABEL_LOG_VERBOSITY);
|
|
|
|
layout->add(MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL);
|
|
|
|
layout->add(MENU_ENUM_LABEL_PERFCNT_ENABLE);
|
2019-03-27 02:37:34 +01:00
|
|
|
|
|
|
|
widget->setLayout(layout);
|
|
|
|
|
|
|
|
return widget;
|
|
|
|
}
|