-
Notifications
You must be signed in to change notification settings - Fork 632
Auto hide feature #452
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Auto hide feature #452
Conversation
SyarifFakhri
commented
Sep 7, 2022
- Added main functionality for auto hiding docks
- Auto hide toggle button is added in the dock area titlebar
- Side tab bars are added to the left and right of each window
- Add config for enabling the auto hide button, left side bar area and the right side bar area
- Add logic for save state and restore state with the auto hide functionality
Fix bug where pin and unpin doesn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed all build issues that occured when building your pull request on my Windows machine with qmake and pushed everything to a new branch auto_hide_feature
Thank you for this big merge request with a great new feature. I fixed all build issues in your pull request that occured when building everything on Windows with MinGW and qmake. When I run the demo application on WIndows to test the feature, I can see an issue that I will document in the next days. |
Thanks for reviewing it so quickly! I will merge this with the auto hide branch you created and look into the issues you brought up. Please let me know if you find anything else :). I'm still testing this, so I will post more bug fixes as I go along, will let you know once it's fully ready for review! |
…ault auto hide feature.
edge border when not selected
widgets when toggling overlay Also centralized and simplified the logic for the title bar button visibility
…e click shortly after a mouse over collapse event
…Bars to dock container
… backward compatible
…vanced-Docking-System into auto_hide_feature
…emoveDockWidget(DockWidget) call when restoring state
…vanced-Docking-System into auto_hide_feature
@SyarifFakhri Thank you for your contribution. I'm closing the pull request now because development now takes place in the autohide_feature branch. |
Just a heads up, QMouseEvent::globalPos is deprecated in Qt6: https://doc.qt.io/qt-6/qmouseevent-obsolete.html#globalPos Used twice around
Also, |
@FelixBer Thank you. Fixed it. |
@githubuser0xFFFF
This gives a warning that struct was previously declared as a class
I believe the |
@SyarifFakhri Thank you. Fixed it. Please test. I have a question. In qmake I can add an RC file on Windows with the |
@githubuser0xFFFF I did find one more issue while testing this. If you open an auto hide dock tab and open the context menu as shown: Then click anywhere inside the dock but outside the context menu, the dock will collapse. I believe that's due to this code here:
The context menu is considered as a different window, so it closes. I think one fix would be to check if the widget is a descendant of the auto hide widget, and don't collapse it if it is perhaps? |
@SyarifFakhri Thank you - good catch. I changed the implementation now. Now the auto hide container is not closed, if the user clicks into another floating window. It will only get closed in the following cases:
Please test, if this is ok for you. |
@SyarifFakhri I noticed that there are still some things, that needs to get fixed with hiding the auto hide widget |
@SyarifFakhri Ok, I think I finally fixed the eventFilter function ion auto hide widget to work properly. Please test. |
Everything seems good. Thanks for the fixes! |
how to pin/unpin(auto hide) a group? |
@yuriyoung Just read the manual and play around with the demo application and you will find it out in some minutes. |