diff --git a/include/ignition/gui/qml/GzPose.qml b/include/ignition/gui/qml/GzPose.qml index d863e6bfc..2988664fc 100644 --- a/include/ignition/gui/qml/GzPose.qml +++ b/include/ignition/gui/qml/GzPose.qml @@ -31,6 +31,7 @@ import QtQuick.Controls.Styles 1.4 * GzPose { * id: gzPose * readOnly: false + * useRadian: true * xValue: xValueFromCPP * yValue: yValueFromCPP * zValue: zValueFromCPP @@ -49,6 +50,9 @@ Item { // Read-only / write property bool readOnly: false + // Radian / Degree as the unit for Rotation + property bool useRadian: true + // User input value. property double xValue property double yValue @@ -165,7 +169,7 @@ Item { } Text { - text: 'Roll (rad)' + text: 'Roll ' + (useRadian ? '(rad)' : '(deg)') leftPadding: 5 color: Material.theme == Material.Light ? "#444444" : "#bbbbbb" font.pointSize: 12 @@ -207,7 +211,7 @@ Item { } Text { - text: 'Pitch (rad)' + text: 'Pitch ' + (useRadian ? '(rad)' : '(deg)') leftPadding: 5 color: Material.theme == Material.Light ? "#444444" : "#bbbbbb" font.pointSize: 12 @@ -249,7 +253,7 @@ Item { } Text { - text: 'Yaw (rad)' + text: 'Yaw ' + (useRadian ? '(rad)' : '(deg)') leftPadding: 5 color: Material.theme == Material.Light ? "#444444" : "#bbbbbb" font.pointSize: 12