From dc78d009e0c85c4def5c44cf0ccc3d4b380223fb Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Mon, 16 Dec 2019 17:02:51 +0300 Subject: [PATCH] [ButtonRow] Fixup warning if current index not set --- src/controls/qml/ButtonRow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/qml/ButtonRow.qml b/src/controls/qml/ButtonRow.qml index 981ecad..fbba17a 100644 --- a/src/controls/qml/ButtonRow.qml +++ b/src/controls/qml/ButtonRow.qml @@ -67,7 +67,7 @@ Rectangle { clip: true visible: main.currentIndex > -1 width: main.currentIndex > -1 ? rowElement.children[main.currentIndex].width : 0 - x: rowElement.children[main.currentIndex].x + x: main.currentIndex > 0 ? rowElement.children[main.currentIndex].x : 0 Behavior on x { NumberAnimation { duration: 200; easing.type: Easing.OutCubic}