From 9717731f8a1d086b169325532aa7a1357d9cf119 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Fri, 9 Aug 2013 06:25:24 +0300 Subject: [PATCH] Added opacity "animation" when we show/hide toolbar tools --- qml/CameraToolBarTools.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/CameraToolBarTools.qml b/qml/CameraToolBarTools.qml index f6437bb..d0bfb99 100644 --- a/qml/CameraToolBarTools.qml +++ b/qml/CameraToolBarTools.qml @@ -35,4 +35,10 @@ Row { property real childrenWidth: Layout.calculateChildrenWidth(children) property int childrenLen: Layout.countVisibleChildren(children) spacing: (width - childrenWidth) / (childrenLen - 1) + + opacity: visible ? 1.0 : 0 + + Behavior on opacity { + NumberAnimation { duration: 100 } + } } -- 2.25.1