mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 00:10:52 +02:00
Fix runtime warnings
This commit is contained in:
parent
4df77cff31
commit
81169c59c8
2 changed files with 6 additions and 6 deletions
|
@ -111,9 +111,9 @@ TableView {
|
||||||
|
|
||||||
itemDelegate: Item {
|
itemDelegate: Item {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent ? parent.left : undefined
|
||||||
leftMargin: hifi.dimensions.tablePadding
|
leftMargin: hifi.dimensions.tablePadding
|
||||||
right: parent.right
|
right: parent ? parent.right : undefined
|
||||||
rightMargin: hifi.dimensions.tablePadding
|
rightMargin: hifi.dimensions.tablePadding
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ TableView {
|
||||||
|
|
||||||
// FIXME: Automatically use aux. information from tableModel
|
// FIXME: Automatically use aux. information from tableModel
|
||||||
FiraSansSemiBold {
|
FiraSansSemiBold {
|
||||||
text: tableModel.get(styleData.row).url
|
text: tableModel.get(styleData.row) ? tableModel.get(styleData.row).url : ""
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
size: hifi.fontSizes.tableText
|
size: hifi.fontSizes.tableText
|
||||||
color: colorScheme == hifi.colorSchemes.light
|
color: colorScheme == hifi.colorSchemes.light
|
||||||
|
|
|
@ -112,11 +112,11 @@ TreeView {
|
||||||
|
|
||||||
itemDelegate: FiraSansSemiBold {
|
itemDelegate: FiraSansSemiBold {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent ? parent.left : undefined
|
||||||
leftMargin: (2 + styleData.depth) * hifi.dimensions.tablePadding
|
leftMargin: (2 + styleData.depth) * hifi.dimensions.tablePadding
|
||||||
right: parent.right
|
right: parent ? parent.right : undefined
|
||||||
rightMargin: hifi.dimensions.tablePadding
|
rightMargin: hifi.dimensions.tablePadding
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent ? parent.verticalCenter : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
text: styleData.value
|
text: styleData.value
|
||||||
|
|
Loading…
Reference in a new issue