viewer: looser minimum heights so the bottom docks resize freely
Lower the dataset-info chart and jobs-table minimum heights (200 -> 80, table 60) so the bottom dock area can be dragged smaller; the comfortable default size is still set via resizeDocks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ JFJochViewerDatasetInfo::JFJochViewerDatasetInfo(QWidget *parent) : QWidget(pare
|
||||
|
||||
stack = new QStackedWidget(this);
|
||||
chart_view = new JFJochDatasetInfoChartView(this);
|
||||
chart_view->setMinimumHeight(200); // keep the plot readable even when the dock is small
|
||||
chart_view->setMinimumHeight(80); // low floor so the bottom dock resizes freely (default is set via resizeDocks)
|
||||
grid_scan_image = new JFJochGridScanImage(this);
|
||||
|
||||
stack->addWidget(chart_view);
|
||||
|
||||
@@ -57,6 +57,7 @@ JFJochProcessingJobsWindow::JFJochProcessingJobsWindow(JFJochImageReadingWorker
|
||||
toolbar_->addAction("Show original", this, &JFJochProcessingJobsWindow::showOriginal);
|
||||
|
||||
table_ = new QTableWidget(0, COL_COUNT, this);
|
||||
table_->setMinimumHeight(60); // let the bottom dock shrink freely
|
||||
table_->setHorizontalHeaderLabels({"Name", "Started", "Mode", "Images", "Status", "Index %", "Unit cell"});
|
||||
table_->horizontalHeader()->setStretchLastSection(true);
|
||||
table_->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
|
||||
Reference in New Issue
Block a user