mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-01 09:26:26 +00:00
Simplify Models panel and dialog layout
Models panel: replace the manual resizeEvent column-sizing hack with QHeaderView Stretch/Fixed modes, re-applied via sectionCountChanged so they survive the model rebuilds that QHeaderView resets them on. Dialog: only wrap the body in a QScrollArea when scrollable, mirroring Panel. The scroll area caps its sizeHint at 36x24 cells, which turned wide fixed-size dialog content into spurious scrollbars. Add Model dialog: reserve a stable, font-metrics-measured height for the hover description so longer text never reflows the buttons; regroup the buttons into LOCAL / CLOUD / TOOLS. Buttons: move the trailing-separator decision out of makeButtonGroup into a new addButtonGroups row builder, so the last group in a row never draws a dangling divider. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -135,10 +135,10 @@ void SaveProjectDialog::setupUi(bool has_manifest) {
|
||||
"Pick a connector and push this project to a fresh cloud location.",
|
||||
default_description));
|
||||
|
||||
row->addWidget(components::buttons::makeButtonGroup(
|
||||
"LOCAL", {save_local, save_as_local}, choices, true, 8));
|
||||
row->addWidget(components::buttons::makeButtonGroup(
|
||||
"CLOUD", {save_cloud, save_as_cloud}, choices, false, 8));
|
||||
components::buttons::addButtonGroups(row, {
|
||||
components::buttons::makeButtonGroup("LOCAL", {save_local, save_as_local}, choices, 8),
|
||||
components::buttons::makeButtonGroup("CLOUD", {save_cloud, save_as_cloud}, choices, 8),
|
||||
});
|
||||
choices_section->addBodyWidget(choices);
|
||||
|
||||
addBodyWidget(description_section);
|
||||
|
||||
Reference in New Issue
Block a user