diff options
author | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2024-06-10 16:09:41 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-06-18 13:18:02 +0000 |
commit | 218653b05116b70b075a30520892e7c1c2d471fa (patch) | |
tree | d0cfabb5ccd7cacde6c551fcdb01adb42cee4736 /examples/quick/keyinteraction/focus.qml | |
parent | 76a98c3cd7b0e0ff061c899ca0e115cae1d70931 (diff) |
Material: fix button padding for IconOnly and TextOnly displays6.7
Correct the right padding of the Material style Button when the display
is IconOnly and the left padding when the display is TextOnly.
The issue was due to the buttonLeftPadding() and buttonRightPadding()
functions not considering the display condition in the hasIcon and
hasText arguments. To fix this, the display condition is now included in
the arguments of these functions.
Additionally, comparing the leftPadding and rightPadding with the output
of buttonLeftPadding() and buttonRightPadding() has been added to the
test case.
Fixes: QTBUG-126124
Pick-to: 6.5
Change-Id: I2f1b60ebeae3d9854f96357bc5b0b5a77746aa17
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit bffee8b06d960d3c84fab46895ae2edbe1e066c1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 41a517ebf2704665f18405b466695b754411f468)
Diffstat (limited to 'examples/quick/keyinteraction/focus.qml')
0 files changed, 0 insertions, 0 deletions