RetroArch/ui/drivers/qt/options/achievements.cpp
2019-04-14 18:37:20 +02:00

47 lines
1.2 KiB
C++

#include "options.h"
AchievementsCategory::AchievementsCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_RETRO_ACHIEVEMENTS_SETTINGS);
setCategoryIcon("menu_achievements");
}
QVector<OptionsPage*> AchievementsCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new AchievementsPage(this);
return pages;
}
AchievementsPage::AchievementsPage(QObject *parent) :
OptionsPage(parent)
{
}
QWidget *AchievementsPage::widget()
{
QWidget *widget = new QWidget;
QVBoxLayout *layout = new QVBoxLayout;
CheckableSettingsGroup *group = new CheckableSettingsGroup(MENU_ENUM_LABEL_CHEEVOS_ENABLE);
group->add(MENU_ENUM_LABEL_CHEEVOS_USERNAME);
group->add(MENU_ENUM_LABEL_CHEEVOS_PASSWORD);
group->add(MENU_ENUM_LABEL_CHEEVOS_HARDCORE_MODE_ENABLE);
group->add(MENU_ENUM_LABEL_CHEEVOS_LEADERBOARDS_ENABLE);
group->add(MENU_ENUM_LABEL_CHEEVOS_BADGES_ENABLE);
group->add(MENU_ENUM_LABEL_CHEEVOS_TEST_UNOFFICIAL);
group->add(MENU_ENUM_LABEL_CHEEVOS_VERBOSE_ENABLE);
group->add(MENU_ENUM_LABEL_CHEEVOS_AUTO_SCREENSHOT);
layout->addWidget(group);
layout->addStretch();
widget->setLayout(layout);
return widget;
}