Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.1
-
None
-
Operating System: openSUSE Tumbleweed 20240531
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: Wayland
-
-
bffee8b06 (dev), 41a517ebf (6.8), 218653b05 (6.7), b896fe22f (tqtc/lts-6.5)
Description
Run the following code:
Button { id: button1 text: "Play" icon.name: "media-playback-start" display: AbstractButton.IconOnly } Button { anchors.left: button1.right icon.name: "media-playback-start" display: AbstractButton.IconOnly }
The first button has extra right-padding.
The fix is probably here: https://invent.kde.org/qt/qt/qtdeclarative/-/blob/dev/src/quickcontrols/material/Button.qml?ref_type=heads#L22
- Material.buttonRightPadding(flat, hasIcon, text !== "") + Material.buttonRightPadding(flat, hasIcon, text !== "" && display !== T.AbstractButton.IconOnly)
Attachments
For Gerrit Dashboard: QTBUG-126124 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
567390,4 | Material: fix button padding for IconOnly and TextOnly displays | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
569110,2 | Material: fix button padding for IconOnly and TextOnly displays | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
569305,2 | Material: fix button padding for IconOnly and TextOnly displays | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
569715,2 | Material: fix button padding for IconOnly and TextOnly displays | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |