Index: sources/gui/qml/components/TouchRect.qml =================================================================== diff -u -r73091a6f5717c0fc88e236c06c618ad361f30a3c -r066258b65a1c41afe3828c92d2606d2642505d72 --- sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 73091a6f5717c0fc88e236c06c618ad361f30a3c) +++ sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 066258b65a1c41afe3828c92d2606d2642505d72) @@ -31,6 +31,7 @@ property bool isDefault : false property bool selectable : false property bool selected : false + readonly property alias isPressed : _mouseArea.pressed property color textColor : Colors.textButton property color borderColor : Colors.borderButton @@ -84,10 +85,9 @@ radius : Variables.touchRectRadius border.width: Variables.borderWidth - - Text { id: _text - anchors.centerIn: parent + anchors.verticalCenter : parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter color: enabled ? _root.textColor : Colors.textDisableButton font.pixelSize: Fonts.fontPixelButton } @@ -98,6 +98,5 @@ onClicked : _root.clicked() onPressed : _root.pressed() onReleased : _root.released() - } }