Set custom width for HardwareID colums and auto expand list

This commit is contained in:
TheRogueZeta 2023-07-10 16:23:09 +00:00 committed by Adam Honse
parent c44d87e24d
commit 9c2a648d09
2 changed files with 9 additions and 2 deletions

View file

@ -17,6 +17,9 @@ Ui::OpenRGBHardwareIDsDialog::OpenRGBHardwareIDsDialog(QWidget *parent) :
ui(new Ui::OpenRGBHardwareIDsDialogUi)
{
ui->setupUi(this);
ui->HardwareIdsList->header()->resizeSection(0 /*column index*/, 300 /*width*/);
ui->HardwareIdsList->header()->resizeSection(1 /*column index*/, 200 /*width*/);
ui->HardwareIdsList->header()->resizeSection(2 /*column index*/, 100 /*width*/);
}
Ui::OpenRGBHardwareIDsDialog::~OpenRGBHardwareIDsDialog()
@ -122,6 +125,10 @@ int Ui::OpenRGBHardwareIDsDialog::show()
libusb_free_device_list(devices, 1);
}
i2c_top->setExpanded(true);
hid_top->setExpanded(true);
libusb_top->setExpanded(true);
return this->exec();
}

View file

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>425</width>
<height>273</height>
<width>700</width>
<height>500</height>
</rect>
</property>
<property name="windowTitle">