2014-08-28 08:29:12 +00:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
property ToolbarButton tool
|
|
|
|
id: panel
|
|
|
|
|
2014-08-28 13:09:47 +00:00
|
|
|
opacity: 0
|
2014-08-28 08:29:12 +00:00
|
|
|
width: 200
|
|
|
|
height: parent.height - 100
|
2014-08-28 13:09:47 +00:00
|
|
|
color: "#a0909090"
|
2014-08-28 08:29:12 +00:00
|
|
|
enabled: visible
|
|
|
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
2014-08-28 13:09:47 +00:00
|
|
|
Behavior on opacity {
|
|
|
|
PropertyAnimation {
|
|
|
|
duration: 200
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-28 08:29:12 +00:00
|
|
|
states: [
|
|
|
|
State {
|
|
|
|
name: "Active"
|
|
|
|
when: tool.selected
|
|
|
|
|
|
|
|
PropertyChanges {
|
|
|
|
target: panel
|
|
|
|
visible: true
|
2014-08-28 13:09:47 +00:00
|
|
|
opacity: 1
|
2014-08-28 08:29:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
}
|