From dab083c37bac5b0fcdddde53c7c1d62dcb99d15c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 5 Mar 2015 17:28:24 +0100 Subject: [PATCH] a scrollbar --- containments/homescreen/contents/ui/main.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/containments/homescreen/contents/ui/main.qml b/containments/homescreen/contents/ui/main.qml index 215715de..b43b2965 100644 --- a/containments/homescreen/contents/ui/main.qml +++ b/containments/homescreen/contents/ui/main.qml @@ -82,6 +82,7 @@ Item { PlasmaCore.ColorScope { anchors.fill: parent colorGroup: PlasmaCore.Theme.ComplementaryColorGroup + GridView { id: applicationsView anchors { @@ -173,6 +174,16 @@ Item { height: width } } + PlasmaComponents.ScrollBar { + flickableItem: applicationsView + opacity: applicationsView.flicking ? 1 : 0 + Behavior on opacity { + NumberAnimation { + duration: units.shortDuration + easing.type: Easing.InOutQuad + } + } + } } Component.onCompleted: {