RetroArch/ui/drivers/qt/options/logging.cpp

37 lines
717 B
C++
Raw Normal View History

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()
{
QWidget *widget = new QWidget;
2019-03-27 02:37:34 +01:00
FormLayout *layout = new FormLayout;
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;
}