NSectionEditor: Force text width for a more uniform look
This commit is contained in:
parent
d1f5d301c2
commit
40edc38756
1 changed files with 4 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ NBox {
|
||||||
required property int index
|
required property int index
|
||||||
required property string modelData
|
required property string modelData
|
||||||
|
|
||||||
width: widgetContent.implicitWidth + 16 * scaling
|
width: widgetContent.implicitWidth + Style.marginL * scaling
|
||||||
height: 40 * scaling
|
height: 40 * scaling
|
||||||
radius: Style.radiusL * scaling
|
radius: Style.radiusL * scaling
|
||||||
color: root.getWidgetColor(modelData)
|
color: root.getWidgetColor(modelData)
|
||||||
|
|
@ -145,6 +145,7 @@ NBox {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: widgetContent
|
id: widgetContent
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: Style.marginXS * scaling
|
spacing: Style.marginXS * scaling
|
||||||
|
|
||||||
|
|
@ -153,6 +154,8 @@ NBox {
|
||||||
font.pointSize: Style.fontSizeS * scaling
|
font.pointSize: Style.fontSizeS * scaling
|
||||||
color: Color.mOnPrimary
|
color: Color.mOnPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
elide: Text.ElideRight
|
||||||
|
Layout.preferredWidth: 80 * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue