这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@scribblemaniac
Copy link
Member

BaseDockWidget was creating empty QWidgets that were children of the main window. As children of the main window they were positioned at the top left of the window by default and I guess they were being set to visible when the main window is shown. These didn't render anything because they're empty, but were blocking mouse events for a small area.

By hiding them right away, we prevent this behavior. I also changed the parents of the title bar widgets to be the BaseDockWidget, so they will be moved to the top left of the dock widget instead. I think the BaseDockWidget makes more sense as a parent logically and assures that if the BaseDockWidget is deleted, its title bars will be deleted right away too (the dock widgets currently last the lifetime of the application so this won't make any different right now).

Fixes #1929

The menu was being blocked by empty QWidgets from the title bars.
By default, the title bar is shown and the empty title bar is hidden.
They are then shown and hidden by QDockWidget::setTitleBarWidget.

The parent widget of the titles bars was also changed to the
QDockWidget as that is more logical and assures that the title
bars are deleted if the BaseDockWidget is deleted.
@scribblemaniac scribblemaniac added this to the 0.7.1 milestone Sep 16, 2025
@scribblemaniac scribblemaniac added the 🔹 Minor PR (only one reviewer required) label Sep 16, 2025
Copy link
Member

@MrStevns MrStevns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this, as I wasn't able to reproduce it.
Changes looks good to me

Shouldn't the changes point towards the release branch though? or would you rather cherry pick them?

@github-project-automation github-project-automation bot moved this from Needs Review to Approved in Pull Request Priority Sep 20, 2025
@chchwy chchwy changed the base branch from master to release/0.7.1 September 20, 2025 15:41
@chchwy chchwy changed the base branch from release/0.7.1 to master September 20, 2025 15:42
@chchwy
Copy link
Member

chchwy commented Sep 21, 2025

OK, I will merge this PR and cherry pick to the release branch.

@chchwy chchwy merged commit fe4cd86 into pencil2d:master Sep 21, 2025
6 of 8 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Pull Request Priority Sep 21, 2025
@chchwy
Copy link
Member

chchwy commented Sep 21, 2025

I just realized that this PR is for master. don't need to cherry-pick to release/0.7.1 branch since the release branch doesn't have the latest title bar change.

@MrStevns
Copy link
Member

MrStevns commented Sep 21, 2025

Ah... 😅 you're right.. in that case i've changed the milestone to 0.8.0 instead

@MrStevns MrStevns modified the milestones: 0.7.1, 0.8.0 Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔹 Minor PR (only one reviewer required)

Projects

Development

Successfully merging this pull request may close these issues.

🐛 [BUG] File/Edit menu not expanding

3 participants