-
Notifications
You must be signed in to change notification settings - Fork 806
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 folder progress bar positioning in account settings on macOS #5645
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5645 +/- ##
==========================================
+ Coverage 59.25% 59.26% +0.01%
==========================================
Files 143 143
Lines 18450 18450
==========================================
+ Hits 10932 10934 +2
+ Misses 7518 7516 -2 |
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
… QMacStyle Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…older settings instead of QCommonStyle Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
…legate::paint Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
9898c0f
to
3960032
Compare
AppImage file: nextcloud-PR-5645-396003264cff659428ae89385bbf522455fc2d8b-x86_64.AppImage |
/backport to stable-3.8 |
SonarCloud Quality Gate failed. |
We draw a custom widget for the folder status in the account settings, using QStyle's various drawing methods to render the internal widgets. This works great 99% of the time, except on macOS where
QMacStyle
has a bug with drawing progress bars and does not respect X or Y settings in theQStyleOptionProgressBar
rect QRect. This means the progress bar gets drawn out of position at the top-left of the folder view.In cases where we are running macOS, default to drawing this progress bar with the Fusion style instead.
This PR also includes a number of code clean ups in the relevant
paint
function for the folder delegateWith fix:
Before fix: