From 9f826f2460cc6ad113e28201407d401aaa8c7fc7 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Wed, 29 Mar 2017 13:00:30 -0700 Subject: [PATCH] Clip summary text appropriately --- src/QmlControls/VehicleSummaryRow.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/QmlControls/VehicleSummaryRow.qml b/src/QmlControls/VehicleSummaryRow.qml index e3d125dc27..d0689724dc 100644 --- a/src/QmlControls/VehicleSummaryRow.qml +++ b/src/QmlControls/VehicleSummaryRow.qml @@ -1,8 +1,8 @@ -import QtQuick 2.3 +import QtQuick 2.3 import QtQuick.Controls 1.2 -import QtQuick.Controls.Styles 1.4 +import QtQuick.Layouts 1.2 -Row { +RowLayout { property string labelText: "Label" property string valueText: "value" @@ -13,8 +13,9 @@ Row { text: labelText } QGCLabel { - width: parent.width - label.contentWidth - text: valueText - horizontalAlignment: Text.AlignRight; + text: valueText + elide: Text.ElideRight + horizontalAlignment: Text.AlignRight + Layout.fillWidth: true } } -- GitLab