2014-09-18 15:38:37 +00:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
2015-08-19 23:15:08 +00:00
|
|
|
Toolbar {
|
2014-09-18 15:38:37 +00:00
|
|
|
id: camera_choice
|
2015-08-19 23:15:08 +00:00
|
|
|
horizontal: false
|
2014-09-18 15:38:37 +00:00
|
|
|
color: "#90888888"
|
|
|
|
objectName: "camera_choice"
|
|
|
|
|
2015-08-19 23:15:08 +00:00
|
|
|
ToolbarButton {
|
|
|
|
id: camera_choice_render
|
|
|
|
picture: "images/tab_display.png"
|
|
|
|
hovertext: qsTr("Final render camera")
|
|
|
|
selected: true
|
|
|
|
}
|
2014-09-18 15:38:37 +00:00
|
|
|
|
2015-08-19 23:15:08 +00:00
|
|
|
ToolbarButton {
|
|
|
|
id: camera_choice_topdown
|
|
|
|
picture: "images/display_topdown.png"
|
|
|
|
hovertext: qsTr("Top-down camera")
|
2014-09-18 15:38:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
states: [
|
|
|
|
State {
|
|
|
|
name: "Render camera"
|
|
|
|
when: camera_choice_render.selected
|
|
|
|
},
|
|
|
|
State {
|
|
|
|
name: "Top-down camera"
|
|
|
|
when: camera_choice_topdown.selected
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|