diff options
| author | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2024-06-10 16:09:41 +0200 |
|---|---|---|
| committer | MohammadHossein Qanbari <mohammad.qanbari@qt.io> | 2024-06-17 09:31:07 +0200 |
| commit | bffee8b06d960d3c84fab46895ae2edbe1e066c1 (patch) | |
| tree | 5981e788e506f01ef8f9a5e90a86cd96d435a0f8 /src/qml/compiler/qv4codegen.cpp | |
| parent | 0e92b68ab2f1efdde7a54a3df4a9494eb9fc0a51 (diff) | |
Material: fix button padding for IconOnly and TextOnly displays
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.8 6.7 6.5
Change-Id: I2f1b60ebeae3d9854f96357bc5b0b5a77746aa17
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions
