mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
(UI/QT) More dehardcoding
This commit is contained in:
parent
9f09efe5c9
commit
0feb657e29
@ -1921,6 +1921,7 @@ bool CONFIG_SIZE(
|
||||
if (!(settings_list_append(list, list_info)))
|
||||
return false;
|
||||
(*list)[list_info->index++] = value;
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_SIZE_SPINBOX;
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
menu_settings_list_current_add_enum_idx(list, list_info, name_enum_idx);
|
||||
|
@ -25,14 +25,13 @@ FrameThrottlePage::FrameThrottlePage(QObject *parent) :
|
||||
|
||||
QWidget *FrameThrottlePage::widget()
|
||||
{
|
||||
QWidget *widget = new QWidget;
|
||||
|
||||
QWidget *widget = new QWidget;
|
||||
FormLayout *layout = new FormLayout;
|
||||
|
||||
layout->addFloatSpinBox(MENU_ENUM_LABEL_FASTFORWARD_RATIO);
|
||||
layout->addFloatSpinBox(MENU_ENUM_LABEL_SLOWMOTION_RATIO);
|
||||
layout->addCheckBox(MENU_ENUM_LABEL_VRR_RUNLOOP_ENABLE);
|
||||
layout->addCheckBox(MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE);
|
||||
layout->add(MENU_ENUM_LABEL_FASTFORWARD_RATIO);
|
||||
layout->add(MENU_ENUM_LABEL_SLOWMOTION_RATIO);
|
||||
layout->add(MENU_ENUM_LABEL_VRR_RUNLOOP_ENABLE);
|
||||
layout->add(MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
||||
@ -47,14 +46,13 @@ RewindPage::RewindPage(QObject *parent) :
|
||||
|
||||
QWidget *RewindPage::widget()
|
||||
{
|
||||
QWidget *widget = new QWidget;
|
||||
|
||||
QWidget *widget = new QWidget;
|
||||
FormLayout *layout = new FormLayout;
|
||||
|
||||
layout->addCheckBox(MENU_ENUM_LABEL_REWIND_ENABLE);
|
||||
layout->addUIntSpinBox(MENU_ENUM_LABEL_REWIND_GRANULARITY);
|
||||
layout->addSizeSpinBox(MENU_ENUM_LABEL_REWIND_BUFFER_SIZE);
|
||||
layout->addUIntSpinBox(MENU_ENUM_LABEL_REWIND_BUFFER_SIZE_STEP);
|
||||
layout->add(MENU_ENUM_LABEL_REWIND_ENABLE);
|
||||
layout->add(MENU_ENUM_LABEL_REWIND_GRANULARITY);
|
||||
layout->add(MENU_ENUM_LABEL_REWIND_BUFFER_SIZE);
|
||||
layout->add(MENU_ENUM_LABEL_REWIND_BUFFER_SIZE_STEP);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
this->addFloatSliderAndSpinBox(enum_idx);
|
||||
break;
|
||||
case ST_UI_TYPE_SIZE_SPINBOX:
|
||||
/* TODO/FIXME */
|
||||
this->addSizeSpinBox(enum_idx);
|
||||
break;
|
||||
case ST_UI_TYPE_BIND_BUTTON:
|
||||
return this->addBindButton(enum_idx);
|
||||
@ -181,7 +181,7 @@ public:
|
||||
this->addFloatSliderAndSpinBox(enum_idx);
|
||||
break;
|
||||
case ST_UI_TYPE_SIZE_SPINBOX:
|
||||
/* TODO/FIXME */
|
||||
this->addSizeSpinBox(enum_idx);
|
||||
break;
|
||||
case ST_UI_TYPE_BIND_BUTTON:
|
||||
/* TODO/FIXME - Why is the returntype void here and bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user