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
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{

View file

@ -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{