Fix text wrapping for HRadioButton
This commit is contained in:
parent
44051f706d
commit
71cd509a9d
@ -3,7 +3,6 @@
|
|||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import "../Layouts"
|
|
||||||
|
|
||||||
RadioButton {
|
RadioButton {
|
||||||
id: button
|
id: button
|
||||||
@ -69,6 +68,7 @@ RadioButton {
|
|||||||
|
|
||||||
// Set a width on RadioButton for wrapping to work,
|
// Set a width on RadioButton for wrapping to work,
|
||||||
// e.g. by using Layout.fillWidth
|
// e.g. by using Layout.fillWidth
|
||||||
|
wrapMode: HLabel.Wrap
|
||||||
leftPadding: button.indicator.width + button.spacing
|
leftPadding: button.indicator.width + button.spacing
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
||||||
@ -81,6 +81,7 @@ RadioButton {
|
|||||||
color: theme.controls.checkBox.subtitle
|
color: theme.controls.checkBox.subtitle
|
||||||
font.pixelSize: theme.fontSize.small
|
font.pixelSize: theme.fontSize.small
|
||||||
|
|
||||||
|
wrapMode: mainText.wrapMode
|
||||||
leftPadding: mainText.leftPadding
|
leftPadding: mainText.leftPadding
|
||||||
verticalAlignment: mainText.verticalAlignment
|
verticalAlignment: mainText.verticalAlignment
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user