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

41 lines
886 B
C++
Raw Normal View History

2019-03-27 02:37:34 +01:00
#include "options.h"
FrameThrottleCategory::FrameThrottleCategory(QWidget *parent) :
OptionsCategory(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS);
setCategoryIcon("menu_frameskip");
}
QVector<OptionsPage*> FrameThrottleCategory::pages()
{
QVector<OptionsPage*> pages;
pages << new FrameThrottlePage(this);
pages << new RewindPage(this);
return pages;
}
FrameThrottlePage::FrameThrottlePage(QObject *parent) :
OptionsPage(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS);
}
QWidget *FrameThrottlePage::widget()
{
2019-04-21 00:54:35 +02:00
return create_widget(DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST);
2019-03-27 02:37:34 +01:00
}
RewindPage::RewindPage(QObject *parent) :
OptionsPage(parent)
{
setDisplayName(MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS);
}
QWidget *RewindPage::widget()
{
2019-04-21 00:41:26 +02:00
return create_widget(DISPLAYLIST_REWIND_SETTINGS_LIST);
2019-03-27 02:37:34 +01:00
}