(Desktop Menu) Cleanups

This commit is contained in:
twinaphex 2019-12-20 14:19:11 +01:00
parent b7b0348c3c
commit 559c6df0c3

View File

@ -72,15 +72,11 @@ 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;
{
unsigned i;
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++)
@ -92,7 +88,6 @@ QWidget *HotkeyBindsPage::widget()
}
file_list_free(list);
}
layout->addLayout(mainLayout);