Skip to content

Preserve bar widgets when the layout changes - #10931

Open
kristofferR wants to merge 1 commit into
omacom:quattrofrom
kristofferR:fix/preserve-bar-widgets
Open

Preserve bar widgets when the layout changes#10931
kristofferR wants to merge 1 commit into
omacom:quattrofrom
kristofferR:fix/preserve-bar-widgets

Conversation

@kristofferR

Copy link
Copy Markdown

Moving a bar widget rebuilds the module Repeaters, briefly blanking icons and resetting unrelated widget state.

Reconcile ListModel entries in place so insertion, removal, reordering and settings edits preserve surviving widgets within each bar list. Match unchanged entries first to distinguish repeated widget IDs, and keep settings in a JSON string role so nested objects and arrays retain their normal shape. This also replaces the separate settings-only update path.

Validated with the bar tests, widget contracts, icon geometry and text-colour tests, plus a QML runtime test that checks delegate identity and nested settings through layout edits. Local CodeRabbit preflight returned no findings. The focused tests also pass after rebasing onto the latest quattro.

The recordings show real desktop drags into and out of a group. The after recording also includes the Groups fixes for its own delegates, host handoff and hover icon.

Before After
Bar widgets resetting during a real drag Bar widgets remaining steady during real drags

After screen recording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant