Cutting bars moving outside the listview, and preventing flicking in the listviews

This commit is contained in:
Stefan Persson 2011-01-20 15:24:58 +00:00
parent 3dea146233
commit d67d32b42c
2 changed files with 5 additions and 1 deletions

View file

@ -352,6 +352,8 @@
model: typeSelection model: typeSelection
delegate: typeSelectionRow delegate: typeSelectionRow
highlight: Rectangle { color: "lightsteelblue"; radius: 5 } 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? //TODO can these paths be turned into some kind of constants? Import from common file or something?
ListModel{ ListModel{

View file

@ -28,7 +28,7 @@ import "schedulerscripts.js" as Scripts
} }
Rectangle { id: "deviceRow"; border.color: "blue"; width: parent.width-100; height:parent.height; Rectangle { id: "deviceRow"; border.color: "blue"; width: parent.width-100; height:parent.height;
clip: true
MouseArea { MouseArea {
id: deviceMouseArea id: deviceMouseArea
anchors.fill: parent anchors.fill: parent
@ -81,6 +81,8 @@ import "schedulerscripts.js" as Scripts
//focus: true //focus: true
footer: addButtonComponent footer: addButtonComponent
header: timeline header: timeline
snapMode: ListView.SnapToItem
interactive: false
} }
Component{ Component{