mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
(Desktop Menu) Cleanups
This commit is contained in:
parent
b7b0348c3c
commit
559c6df0c3
@ -72,28 +72,23 @@ HotkeyBindsPage::HotkeyBindsPage(QObject *parent) :
|
||||
QWidget *HotkeyBindsPage::widget()
|
||||
{
|
||||
unsigned i;
|
||||
unsigned count = 0;
|
||||
unsigned half = 40 / 2; /* TODO unhardcode */
|
||||
QWidget *widget = new QWidget;
|
||||
QHBoxLayout *layout = new QHBoxLayout;
|
||||
FormLayout *mainLayout = new FormLayout;
|
||||
file_list_t *list = (file_list_t*)calloc(1, sizeof(*list));
|
||||
|
||||
menu_displaylist_build_list(list, DISPLAYLIST_INPUT_HOTKEY_BINDS_LIST);
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
{
|
||||
unsigned i;
|
||||
file_list_t *list = (file_list_t*)calloc(1, sizeof(*list));
|
||||
menu_displaylist_build_list(list, DISPLAYLIST_INPUT_HOTKEY_BINDS_LIST);
|
||||
menu_file_list_cbs_t *cbs = (menu_file_list_cbs_t*)
|
||||
file_list_get_actiondata_at_offset(list, i);
|
||||
|
||||
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);
|
||||
|
||||
mainLayout->add(cbs->enum_idx);
|
||||
}
|
||||
|
||||
file_list_free(list);
|
||||
mainLayout->add(cbs->enum_idx);
|
||||
}
|
||||
|
||||
file_list_free(list);
|
||||
|
||||
layout->addLayout(mainLayout);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
Loading…
Reference in New Issue
Block a user