mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add tooltips for view orientation buttons.
This commit is contained in:
parent
cf14fa6820
commit
902b9f278e
1 changed files with 30 additions and 0 deletions
|
|
@ -20,29 +20,59 @@ Row
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("view_3d")
|
iconSource: UM.Theme.getIcon("view_3d")
|
||||||
onClicked: Cura.Actions.view3DCamera.trigger()
|
onClicked: Cura.Actions.view3DCamera.trigger()
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
text: catalog.i18nc("@info:tooltip", "3D View")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewOrientationButton
|
ViewOrientationButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("view_front")
|
iconSource: UM.Theme.getIcon("view_front")
|
||||||
onClicked: Cura.Actions.viewFrontCamera.trigger()
|
onClicked: Cura.Actions.viewFrontCamera.trigger()
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Front View")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewOrientationButton
|
ViewOrientationButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("view_top")
|
iconSource: UM.Theme.getIcon("view_top")
|
||||||
onClicked: Cura.Actions.viewTopCamera.trigger()
|
onClicked: Cura.Actions.viewTopCamera.trigger()
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Top View")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewOrientationButton
|
ViewOrientationButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("view_left")
|
iconSource: UM.Theme.getIcon("view_left")
|
||||||
onClicked: Cura.Actions.viewLeftSideCamera.trigger()
|
onClicked: Cura.Actions.viewLeftSideCamera.trigger()
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Left View")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewOrientationButton
|
ViewOrientationButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("view_right")
|
iconSource: UM.Theme.getIcon("view_right")
|
||||||
onClicked: Cura.Actions.viewRightSideCamera.trigger()
|
onClicked: Cura.Actions.viewRightSideCamera.trigger()
|
||||||
|
|
||||||
|
UM.TooltipArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
text: catalog.i18nc("@info:tooltip", "Right View")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue