mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-26 08:48:59 -04:00
Set custom width for HardwareID colums and auto expand list
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user