mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(QT/UI) Cleanups
This commit is contained in:
parent
a58297a577
commit
0805838050
@ -25,27 +25,7 @@ FrameThrottlePage::FrameThrottlePage(QObject *parent) :
|
||||
|
||||
QWidget *FrameThrottlePage::widget()
|
||||
{
|
||||
unsigned i;
|
||||
QWidget *widget = new QWidget;
|
||||
FormLayout *layout = new FormLayout;
|
||||
file_list_t *list = (file_list_t*)calloc(1, sizeof(*list));
|
||||
|
||||
menu_displaylist_build_list(
|
||||
list, DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST);
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
{
|
||||
menu_file_list_cbs_t *cbs = (menu_file_list_cbs_t*)
|
||||
file_list_get_actiondata_at_offset(list, i);
|
||||
|
||||
layout->add(cbs->enum_idx);
|
||||
}
|
||||
|
||||
file_list_free(list);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
||||
return widget;
|
||||
return create_widget(DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST);
|
||||
}
|
||||
|
||||
RewindPage::RewindPage(QObject *parent) :
|
||||
|
@ -160,27 +160,7 @@ QuickMenuPage::QuickMenuPage(QObject *parent) :
|
||||
|
||||
QWidget *QuickMenuPage::widget()
|
||||
{
|
||||
unsigned i;
|
||||
QWidget * widget = new QWidget;
|
||||
FormLayout *layout = new FormLayout;
|
||||
file_list_t *list = (file_list_t*)calloc(1, sizeof(*list));
|
||||
|
||||
menu_displaylist_build_list(
|
||||
list, DISPLAYLIST_QUICK_MENU_VIEWS_SETTINGS_LIST);
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
{
|
||||
menu_file_list_cbs_t *cbs = (menu_file_list_cbs_t*)
|
||||
file_list_get_actiondata_at_offset(list, i);
|
||||
|
||||
layout->add(cbs->enum_idx);
|
||||
}
|
||||
|
||||
file_list_free(list);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
||||
return widget;
|
||||
return create_widget(DISPLAYLIST_QUICK_MENU_VIEWS_SETTINGS_LIST);
|
||||
}
|
||||
|
||||
AppearancePage::AppearancePage(QObject *parent) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user