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

Fixed dialog windows tiling like main windows on tiling window managers. #464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ChloeZamorano
Copy link

I could not find in the documentation a list of what files are for dialog windows or anything along those lines, so I searched for instances of self.setWindowModality and as far as I'm seeing, it looks like that's all of them? In any case, all I did was add self.setWindowFlags(Qt.Dialog) to the init functions of every modal I found that calls setWindowModality, the files affected are:

  • add_field.py
  • file_extension.py
  • fix_dupes.py
  • fix_unlinked.py
  • folders_to_tags.py
  • mirror_entities.py
  • panel.py
  • progress.py

Do let me know if I missed any or if some of these shouldn't be changed, as I'm not familiar with this code base or this style of making GUIs.

This fix has not been tested on Wayland yet, but based on the assumption that Qt behaves the same on both display servers, it should work the same, as this is a very basic feature that both display servers should have.

This fix is for issue #392

For any discussions or comments, use my Discord (chloevz) if a quick reply is desired, as I don't tend to check Github daily.

I could not find in the documentation a list of what files are for dialog windows or anything along those lines, so I searched for instances of `self.setWindowModality` and as far as I'm seeing, it looks like that's all of them?
In any case, all I did was add `self.setWindowFlags(Qt.Dialog)` to the init functions of every modal I found that calls setWindowModality, the files affected are:
- add_field.py
- file_extension.py
- fix_dupes.py
- fix_unlinked.py
- folders_to_tags.py
- mirror_entities.py
- panel.py
- progress.py

Do let me know if I missed any or if some of these shouldn't be changed.

This fix has not been tested on Wayland yet, but based on the assumption that Qt behaves the same on both display servers, it should work the same, as this is a very basic feature that both display servers should have.

This fix is for [issue TagStudioDev#392](TagStudioDev#392)
@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended Type: UI/UX User interface and/or user experience Status: Review Needed A review of this is needed labels Sep 7, 2024
@eivl
Copy link
Collaborator

eivl commented Sep 7, 2024

Qt.Qdialog does not exist, Qdialog under Pyside6.QtWidget does exist.

@ChloeZamorano
Copy link
Author

I am genuinely out of words about that, the program worked just fine on my end with Qt.Dialog and it didn't seem to print any warnings or anything different from otherwise. Whatever though, inheriting QDialog instead of QWidget seems to work fine as well, at least I hope it does.

@yedpodtrzitko
Copy link
Collaborator

@ChloeZamorano can you please fix the failing pipeline?

@CyanVoxel CyanVoxel added Status: Changes Requested Changes are quested to this and removed Status: Review Needed A review of this is needed labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Changes Requested Changes are quested to this Type: Bug Something isn't working as intended Type: UI/UX User interface and/or user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants