Set a minimum width for the sensor view, closes #165

This commit is contained in:
Micke Prag 2012-01-30 12:56:59 +01:00
parent 03f00a0fff
commit 924fe1cf20
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import QtDesktop 0.1
Column { Column {
id: sensorList id: sensorList
property int minimumWidth: main.state == "EDIT" ? 770 : 475
spacing: 1 spacing: 1
BorderImage { BorderImage {

View file

@ -15,7 +15,8 @@ Item {
SensorList { SensorList {
id: sensorList id: sensorList
width: main.width-scrollArea.verticalScrollBar.width property int calculatedWidth: main.width-scrollArea.verticalScrollBar.width
width: (calculatedWidth < minimumWidth ? minimumWidth : calculatedWidth)
} }
} }
} }