Index: sources/gui/qml/components/RangeRect.qml =================================================================== diff -u -r56e378f7504701b9e9a9dccaf205aef2fd52c58e -r9d8a60eb984003d3f7814cbe507b1b37f519bc80 --- sources/gui/qml/components/RangeRect.qml (.../RangeRect.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) +++ sources/gui/qml/components/RangeRect.qml (.../RangeRect.qml) (revision 9d8a60eb984003d3f7814cbe507b1b37f519bc80) @@ -6,8 +6,8 @@ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file RangeRect.qml - * \author (last) Behrouz NemaiPour - * \date (last) 04-Jun-2020 + * \author (last) Peter Lucia + * \date (last) 06-Oct-2020 * \author (original) Behrouz NematiPour * \date (original) 24-Jan-2020 * @@ -26,15 +26,19 @@ Rectangle { id: _root signal clicked(var vMouseEvent) signal dragged(var vMouseEvent) + signal pressChanged() property int decimal : 0 - property real minimum : 0 - property real maximum : 0 + property real minimum : 0 ///< minimum value of the range + property real maximum : 0 ///< maximum value of the range property alias minText : _textMinimum property alias maxText : _textMaximum + property bool minTextHorizontalCenter: false + property bool maxTextHorizontalCenter: false + property string unit : "" property real touchMargin: 0 @@ -58,6 +62,7 @@ left : parent.left top : parent.bottom topMargin : Variables.rangeRectTextMargin + leftMargin : minTextHorizontalCenter ? -minText.width / 2 : 0 } } @@ -74,6 +79,7 @@ right : parent.right top : parent.bottom topMargin : Variables.rangeRectTextMargin + rightMargin : maxTextHorizontalCenter ? -maxText.width / 2 : 0 } } @@ -88,5 +94,8 @@ onClicked: { _root.clicked(mouse) } + onPressedChanged: { + _root.pressChanged(); + } } }