Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI: Follow the widget indications when docking them #12530

Merged
merged 3 commits into from Mar 4, 2024

Conversation

LemonBoy
Copy link
Contributor

The overlay manager handles the creation and drawing of the title bars for the docked widgets. When adding a QDockWidget the manager ignored the set of features (closable, movable, floatable) provided by the widget and always showed all the actions.

Amend the code to take into account the features specified by the widget.

Closes #11944

This commit makes the dockbars show the same set of buttons with and without the overlay mode enabled.

Random concern, should the "overlay" button be displayed unconditionally?

The overlay manager handles the creation and drawing of the title bars
for the docked widgets. When adding a QDockWidget the manager ignored
the set of features (closable, movable, floatable) provided by the
widget and always showed all the actions.

Amend the code to take into account the features specified by the
widget.

Closes FreeCAD#11944
@github-actions github-actions bot added the Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD label Feb 21, 2024
@kadet1090
Copy link
Contributor

This probably also solves #11680? I planned to so same thing in my #11998 PR - if you could cherry pick my commit into your PR as it incorporates another fix in the same area that would be great.

@chennes
Copy link
Member

chennes commented Feb 21, 2024

@LemonBoy please let me know if you plan on cherry-picking @kadet1090's commit here -- if you do that, I'd appreciate it if you'd squash the existing three commits into one.

@LemonBoy
Copy link
Contributor Author

This probably also solves #11680?

I don't think so, this PR is only making the overlay manager show the right set of buttons requested by the QDockWidget.
I also don't understand what the linked ticket is about, for me the panels stay closed (well, hidden) as the state is correctly saved in the config file as height equal to zero. Do you have better reproduction steps?

@LemonBoy
Copy link
Contributor Author

LemonBoy commented Mar 4, 2024

Ping ?

@chennes chennes merged commit 1bcefaf into FreeCAD:main Mar 4, 2024
9 checks passed
@maxwxyz
Copy link
Collaborator

maxwxyz commented Apr 14, 2024

can someone check if this issue is related to this PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Problem] Clipping Plane isn't accessible anymore when panel is closed
4 participants