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

45 lines
1.1 KiB
C++
Raw Normal View History

2019-03-27 02:37:34 +01:00
#include "options.h"
DriversCategory::DriversCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS);
setCategoryIcon("menu_drivers");
}
QVector<OptionsPage*> DriversCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new DriversPage(this);
return pages;
}
DriversPage::DriversPage(QObject *parent) :
OptionsPage(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS);
}
QWidget *DriversPage::widget()
{
2019-04-14 17:26:14 +02:00
QWidget *widget = new QWidget;
2019-03-27 02:37:34 +01:00
FormLayout *layout = new FormLayout;
2019-04-14 17:26:14 +02:00
layout->add(MENU_ENUM_LABEL_INPUT_DRIVER);
layout->add(MENU_ENUM_LABEL_JOYPAD_DRIVER);
layout->add(MENU_ENUM_LABEL_VIDEO_DRIVER);
layout->add(MENU_ENUM_LABEL_AUDIO_DRIVER);
layout->add(MENU_ENUM_LABEL_AUDIO_RESAMPLER_DRIVER);
layout->add(MENU_ENUM_LABEL_CAMERA_DRIVER);
layout->add(MENU_ENUM_LABEL_LOCATION_DRIVER);
layout->add(MENU_ENUM_LABEL_MENU_DRIVER);
layout->add(MENU_ENUM_LABEL_RECORD_DRIVER);
layout->add(MENU_ENUM_LABEL_MIDI_DRIVER);
2019-03-27 02:37:34 +01:00
widget->setLayout(layout);
return widget;
}