Change the flickable area to a ScrollArea. Better for the desktop
This commit is contained in:
parent
69b16f0baf
commit
c90a4c1f12
1 changed files with 6 additions and 2 deletions
|
@ -1,17 +1,21 @@
|
||||||
import Qt 4.7
|
import Qt 4.7
|
||||||
|
import QtDesktop 0.1
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: main
|
id: main
|
||||||
state: "VIEW"
|
state: "VIEW"
|
||||||
|
|
||||||
Flickable {
|
ScrollArea {
|
||||||
|
id: scrollArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
frame: false
|
||||||
|
|
||||||
contentHeight: sensorList.height
|
contentHeight: sensorList.height
|
||||||
|
contentWidth: sensorList.width
|
||||||
|
|
||||||
SensorList {
|
SensorList {
|
||||||
width: parent.width
|
|
||||||
id: sensorList
|
id: sensorList
|
||||||
|
width: main.width-scrollArea.verticalScrollBar.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue