fix(ui): 数据详情dock设ForceNoScrollArea(禁ADS把标题/页签卷入整体滚动条),内容自适应填充
This commit is contained in:
parent
03a6622dea
commit
53dbcee052
|
|
@ -395,8 +395,12 @@ void buildWorkbench(QMainWindow& window, geopro::data::LocalSampleRepository& re
|
|||
// 单击数据集 → 聚焦已开页;双击 → 新建/聚焦页(真实反演剖面/散点/异常/色阶)。
|
||||
auto* detailPanel = new geopro::app::DatasetDetailPanel();
|
||||
auto* detailDock = new ads::CDockWidget(QStringLiteral("数据详情"));
|
||||
// ForceNoScrollArea:禁止 ADS 默认把整块内容(含标题栏/页签栏)包进 QScrollArea。
|
||||
// 否则内容最小尺寸超过 dock 时,整个面板(标题+页签+图)一起滚动。改为内容自适应填充;
|
||||
// 需要时由内层(图表内容区)自行滚动,标题/页签固定。
|
||||
detailDock->setWidget(wrapWithHeader(
|
||||
geopro::app::Glyph::Detail, QStringLiteral("数据详情"), detailPanel));
|
||||
geopro::app::Glyph::Detail, QStringLiteral("数据详情"), detailPanel),
|
||||
ads::CDockWidget::ForceNoScrollArea);
|
||||
// 放在中央视图下方。
|
||||
dockManager->addDockWidget(ads::BottomDockWidgetArea, detailDock, centerDockArea);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue