Getting ready to Qt 6 (2/n). Remove QApplication::globalStrut()
#579
pull
hebasto
wants to merge
1
commits into
bitcoin-core:master
from
hebasto:220409-strut
changing
1
files
+1 −2
-
hebasto commented at 11:59 pm on April 8, 2022: memberThis function has been deprecated in Qt 5.15.0, and has been removed in Qt 6.
-
qt: Remove `QApplication::globalStrut()` call
This function has been deprecated in Qt 5.15.0, and has been removed in Qt 6 (see 033d01bd6e2aef740ad1408a04d3ca0ae3b9ba9b upstream commit).
-
shaavan commented at 5:24 pm on April 10, 2022: contributor
Concept ACK
I successfully verified that the property
globalStrut()
is obeselete in Qt 5. Refernce. So conceptually (and by approach), I agree with this PR. However, I would like to confirm one thing before ACKing this PR.You mentioned that this change could have user-faced behavior changes. However, by my understanding:
QSize::expandedTo
returns a size max of caller and argument. See for reference.- By default,
GlobalStrut
has 0 widths and height value until it is not changed, which is not being done in the codebase. - Hence
A.expandedTo(0)
should be equivalent toA
. - Hence, removing
expandedTo()
should be a simple refactoring change in this case.
So would you please explain how this PR could have user-faced behavior change?
-
jarolrod commented at 3:02 am on April 12, 2022: member
ACK 3eaf5dbfe0a0c814116e92f602f3c062259b6ea3
Visually tested on Linux, macOS, and cross compile to windows. I did not notice any visual changes between this PR and master.
I tested dynamic builds on Linux and macOS using Qt 5.15. It would be nice if someone could test this PR using our minimum supported version of 5.11.3. Currently unable to do this testing myself.
-
hebasto added the label Qt 6 on Apr 12, 2022
-
luke-jr approved
-
luke-jr commented at 2:59 am on April 13, 2022: member
utACK 3eaf5dbfe0a0c814116e92f602f3c062259b6ea3
From my investigation of globalStrut, Qt5 itself never actually supported it correctly in the first place.
-
hebasto commented at 8:29 am on April 13, 2022: member
Concept ACK
I successfully verified that the property
globalStrut()
is obeselete in Qt 5. Refernce. So conceptually (and by approach), I agree with this PR. However, I would like to confirm one thing before ACKing this PR.You mentioned that this change could have user-faced behavior changes. However, by my understanding:
-
QSize::expandedTo
returns a size max of caller and argument. See for reference. -
By default,
GlobalStrut
has 0 widths and height value until it is not changed, which is not being done in the codebase. -
Hence
A.expandedTo(0)
should be equivalent toA
. -
Hence, removing
expandedTo()
should be a simple refactoring change in this case.
So would you please explain how this PR could have user-faced behavior change?
Thank you for your review. Your analysis is correct. I’ve removed mention of user-faced behavior change from the PR description.
-
-
hebasto merged this on Apr 15, 2022
-
hebasto closed this on Apr 15, 2022
-
hebasto deleted the branch on Apr 15, 2022
-
sidhujag referenced this in commit 2586b3edb8 on Apr 18, 2022
-
bitcoin-core locked this on Apr 15, 2023
This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-01 03:20 UTC
More mirrored repositories can be found on mirror.b10c.me