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

27 lines
584 B
QML
Raw Normal View History

2014-08-28 08:29:12 +00:00
import QtQuick 2.0
BaseRectangle {
2014-08-28 08:29:12 +00:00
property ToolbarButton tool
id: panel
width: 200
2015-08-19 23:15:08 +00:00
height: primary_toolbar.current ? primary_toolbar.current.height : 10
color: "#40909090"
2014-08-28 08:29:12 +00:00
2015-08-19 23:15:08 +00:00
anchors.left: primary_toolbar.current ? primary_toolbar.current.right : parent.left
anchors.top: primary_toolbar.current ? primary_toolbar.current.top : parent.top
2014-08-28 08:29:12 +00:00
states: [
State {
2015-08-19 23:15:08 +00:00
name: "hidden"
when: !tool.selected
2014-08-28 08:29:12 +00:00
PropertyChanges {
target: panel
2015-08-19 23:15:08 +00:00
enabled: false
2014-08-28 08:29:12 +00:00
}
}
]
}