mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 12:59:00 +08:00
Add tooltips for view orientation buttons.
This commit is contained in:
parent
cf14fa6820
commit
902b9f278e
@ -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…
x
Reference in New Issue
Block a user