make right sizes of filter dock dialog

This commit is contained in:
alemuntoni 2021-09-13 18:21:08 +02:00
parent 1365aea862
commit 82e8706d2f
2 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,14 @@ FilterDockDialog::FilterDockDialog(
ui->previewCheckBox->setVisible(false);
}
}
//horrible hack to make the window of almost the right size...
ui->filterInfoLabel->adjustSize();
ui->parameterFrame->adjustSize();
resize(
width(),
ui->filterInfoLabel->height() + ui->parameterFrame->height() +
ui->previewCheckBox->height() + ui->applyPushButton->height() * 2 + 10);
}
FilterDockDialog::~FilterDockDialog()

View File

@ -43,6 +43,9 @@
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>