Fix text wrapping for HRadioButton

This commit is contained in:
miruka 2021-01-26 13:15:33 -04:00
parent 44051f706d
commit 71cd509a9d

View File

@ -3,7 +3,6 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import "../Layouts"
RadioButton {
id: button
@ -69,6 +68,7 @@ RadioButton {
// Set a width on RadioButton for wrapping to work,
// e.g. by using Layout.fillWidth
wrapMode: HLabel.Wrap
leftPadding: button.indicator.width + button.spacing
verticalAlignment: Text.AlignVCenter
@ -81,6 +81,7 @@ RadioButton {
color: theme.controls.checkBox.subtitle
font.pixelSize: theme.fontSize.small
wrapMode: mainText.wrapMode
leftPadding: mainText.leftPadding
verticalAlignment: mainText.verticalAlignment