mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix QML binding loop
This commit is contained in:
parent
01685b2d44
commit
3d2cb6554e
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ Window {
|
||||||
frameOverlap: 0
|
frameOverlap: 0
|
||||||
|
|
||||||
tab: Rectangle {
|
tab: Rectangle {
|
||||||
implicitWidth: control.count > 1 ? styleData.availableWidth / control.count : text.contentWidth + 4 * hifi.dimensions.contentMargin.x
|
implicitWidth: text.width
|
||||||
implicitHeight: 3 * text.height
|
implicitHeight: 3 * text.height
|
||||||
color: styleData.selected ? hifi.colors.black : hifi.colors.tabBackgroundDark
|
color: styleData.selected ? hifi.colors.black : hifi.colors.tabBackgroundDark
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ Window {
|
||||||
text: styleData.title
|
text: styleData.title
|
||||||
font.capitalization: Font.AllUppercase
|
font.capitalization: Font.AllUppercase
|
||||||
size: hifi.fontSizes.tabName
|
size: hifi.fontSizes.tabName
|
||||||
width: control.count > 1 ? parent.width - 2 * hifi.dimensions.contentSpacing.x : implicitWidth
|
width: control.count > 1 ? styleData.availableWidth / control.count : implicitWidth + 2 * hifi.dimensions.contentSpacing.x
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
color: styleData.selected ? hifi.colors.primaryHighlight : hifi.colors.lightGrayText
|
color: styleData.selected ? hifi.colors.primaryHighlight : hifi.colors.lightGrayText
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
Loading…
Reference in a new issue