Set the minimum width of device options dialog

This commit is contained in:
dreamsourcelabTAI 2023-06-16 14:33:47 +08:00
parent fbf66b4a63
commit 2adae9645b

View File

@ -132,6 +132,11 @@ DeviceOptions::DeviceOptions(QWidget *parent) :
props_box->setLayout(props_lay);
_container_lay->addWidget(props_box);
QWidget *minWid = new QWidget();
minWid->setFixedHeight(1);
minWid->setMinimumWidth(250);
_container_lay->addWidget(minWid);
// chnnels group box
this->build_dynamic_panel();
@ -779,7 +784,7 @@ int bb = 0;
void DeviceOptions::try_resize_scroll()
{
// content area height
int contentHeight = _groupHeight1 + _groupHeight2 + 10; // +space
int contentHeight = _groupHeight1 + _groupHeight2 + 15; // +space
//dialog height
int dlgHeight = contentHeight + 100; // +bottom buttton