Set custom width for HardwareID colums and auto expand list
This commit is contained in:
parent
c44d87e24d
commit
9c2a648d09
2 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue