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

[GUI] Fix progressbar in the main window's status bar #60036

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

agiudiceandrea
Copy link
Contributor

@agiudiceandrea agiudiceandrea commented Jan 1, 2025

Description

The value of the percentage displayed by the progressbar in the main window's status bar differs (+1), half of the time, from that displayed by the progressbar in the Processing dialog window. This also means that it reaches 100% before the process actually completes.

This is due to the fact that the code for the progressbar in the main window's status bar rounds the value, while the value is truncated (with an implicit cast to int) for the progressbar in the Processing dialog window.

Before:
image

After:
image

@agiudiceandrea agiudiceandrea added the GUI/UX Related to QGIS application GUI or User Experience label Jan 1, 2025
@github-actions github-actions bot added this to the 3.42.0 milestone Jan 1, 2025
Copy link

github-actions bot commented Jan 1, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 88d7ee0)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 88d7ee0)

@agiudiceandrea agiudiceandrea added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 2, 2025
@m-kuhn m-kuhn merged commit 6f4df5d into qgis:master Jan 2, 2025
46 checks passed
@agiudiceandrea agiudiceandrea deleted the fix-progressbar branch January 2, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-3_40 Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants