mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
Set the minimum width of device options dialog
This commit is contained in:
parent
fbf66b4a63
commit
2adae9645b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user