From afae882ba46292f603549518b7a6eff0adc9fd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 13 Jan 2012 16:33:10 +0100 Subject: [PATCH] Adding scrollbar to list view --- kcmkwin/kwindecoration/qml/main.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwindecoration/qml/main.qml b/kcmkwin/kwindecoration/qml/main.qml index 33e0ee47d1..9b6c7c0fb6 100644 --- a/kcmkwin/kwindecoration/qml/main.qml +++ b/kcmkwin/kwindecoration/qml/main.qml @@ -23,7 +23,8 @@ Item { property alias currentIndex: listView.currentIndex ListView { id: listView - anchors.fill: parent + height: parent.height + width: parent.width - scrollBar.width model: decorationModel highlight: PlasmaComponents.Highlight { width: listView.width - 10 @@ -82,4 +83,13 @@ Item { } } } + PlasmaComponents.ScrollBar { + id: scrollBar + flickableItem: listView + anchors { + right: parent.right + top: parent.top + bottom: parent.bottom + } + } }