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

Fix for TypeErrors when using certain app styles #793

Merged

Conversation

FrancoisDuchene
Copy link
Contributor

When i was using certain app styles like cleanlooks or qt5ct-style, a TypeError was raising in cascade about the function not having enough arguments.
It seemed that, despite the last args of Qstyle.subElementRect() and Qstyle.sizeFromContents() were optional, it was still required to add it (even if it was just None in these cases).
That TypeError was only appearing with certain styles, at startup or when changing styles in the settings window.

bug_style1
bug_style2

When i was using certain styles like cleanlooks or qt5ct-style, a TypeError was raising in cascade about the function not having enough arguments.
It looked like that, despite the last args of Qstyle.subElementRect() and Qstyle.sizeFromContents() were optional, it was still required to mention it (even if it was just None).
That TypeError was only appearing with certain styles, at startup or when changing styles in the settings window.
@TheJackiMonster TheJackiMonster added this to the 0.12.0 milestone Apr 8, 2021
@TheJackiMonster TheJackiMonster merged commit 2545f9c into olivierkes:develop Apr 8, 2021
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.

None yet

2 participants