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

46 lines
917 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")
}
}
BasePanel {
id: panel_water_level
width: 40
anchors.left: toolbar.right
enabled: false
BaseSlider {
objectName: "water_height"
minimumValue: -1
maximumValue: 1
orientation: Qt.Vertical
anchors.fill: parent
anchors.margins: 10
}
}
states: [
State {
name: "WaterHeight"
when: tool_water_level.selected
PropertyChanges {
target: panel_water_level
enabled: true
}
}
]
}