From d67d32b42cd89a0209ed9711e711aef1f804c5fb Mon Sep 17 00:00:00 2001 From: Stefan Persson Date: Thu, 20 Jan 2011 15:24:58 +0000 Subject: [PATCH] Cutting bars moving outside the listview, and preventing flicking in the listviews --- telldus-gui/Plugins/SchedulerGUISimple/Dialog.qml | 2 ++ telldus-gui/Plugins/SchedulerGUISimple/main.qml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/telldus-gui/Plugins/SchedulerGUISimple/Dialog.qml b/telldus-gui/Plugins/SchedulerGUISimple/Dialog.qml index 9fc226e4..8b7ab9a6 100644 --- a/telldus-gui/Plugins/SchedulerGUISimple/Dialog.qml +++ b/telldus-gui/Plugins/SchedulerGUISimple/Dialog.qml @@ -352,6 +352,8 @@ model: typeSelection delegate: typeSelectionRow highlight: Rectangle { color: "lightsteelblue"; radius: 5 } + snapMode: ListView.SnapToItem + interactive: false //TODO can these paths be turned into some kind of constants? Import from common file or something? ListModel{ diff --git a/telldus-gui/Plugins/SchedulerGUISimple/main.qml b/telldus-gui/Plugins/SchedulerGUISimple/main.qml index 83eb3677..758f6d42 100644 --- a/telldus-gui/Plugins/SchedulerGUISimple/main.qml +++ b/telldus-gui/Plugins/SchedulerGUISimple/main.qml @@ -28,7 +28,7 @@ import "schedulerscripts.js" as Scripts } Rectangle { id: "deviceRow"; border.color: "blue"; width: parent.width-100; height:parent.height; - + clip: true MouseArea { id: deviceMouseArea anchors.fill: parent @@ -81,6 +81,8 @@ import "schedulerscripts.js" as Scripts //focus: true footer: addButtonComponent header: timeline + snapMode: ListView.SnapToItem + interactive: false } Component{