paysages3d/src/interface/modeler/quickapp/qml/WaterSection.qml

39 lines
760 B
QML
Raw Normal View History

2015-08-23 22:39:31 +00:00
import QtQuick 2.0
// Water control
BaseSection {
id: section
BaseToolbar {
id: toolbar
ToolbarButton {
id: tool_water_level
selected: true
picture: "images/icon_water_level.png"
hovertext: qsTr("Change the water altitude")
}
}
2015-08-23 23:19:19 +00:00
PanelSimpleFloat {
2015-08-23 22:39:31 +00:00
id: panel_water_level
enabled: false
2015-08-23 23:19:19 +00:00
anchors.left: toolbar.right
minimumValue: -1
maximumValue: 1
objectName: "water_height"
2015-08-23 22:39:31 +00:00
}
states: [
State {
name: "WaterHeight"
when: tool_water_level.selected
PropertyChanges {
target: panel_water_level
enabled: true
}
}
]
}