Commit 73fdb19d authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Respect "show title" flag for Faces' CompactRepresentation

This was missed when initially implementing the support

CCBUG: 431995


(cherry picked from commit 458d973e)
parent 1e193a8d
......@@ -44,8 +44,10 @@ Faces.SensorFace {
}
QQC2.Label {
id: label
visible: root.formFactor == Faces.SensorFace.Planar
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
visible: root.formFactor == Faces.SensorFace.Planar && root.controller.showTitle && text.length > 0
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
text: root.controller.title
}
}
......
......@@ -41,8 +41,10 @@ Faces.SensorFace {
}
QQC2.Label {
id: label
visible: root.formFactor == Faces.SensorFace.Planar
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
visible: root.formFactor == Faces.SensorFace.Planar && root.controller.showTitle && text.length > 0
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
text: root.controller.title
}
}
......
......@@ -43,8 +43,10 @@ Faces.SensorFace {
}
QQC2.Label {
id: label
visible: root.formFactor == Faces.SensorFace.Planar
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
visible: root.formFactor == Faces.SensorFace.Planar && root.controller.showTitle && text.length > 0
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
text: root.controller.title
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment