mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-25 17:08:34 -07:00
25 lines
487 B
QML
25 lines
487 B
QML
// Copyright (c) 2025 UltiMaker
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick
|
|
|
|
import UM 1.7 as UM
|
|
import Cura 1.0 as Cura
|
|
|
|
|
|
UM.ToolbarButton
|
|
{
|
|
id: buttonBrushShape
|
|
|
|
property int shape
|
|
|
|
checked: base.selectedShape === buttonBrushShape.shape
|
|
|
|
onClicked: setShape()
|
|
|
|
function setShape()
|
|
{
|
|
base.selectedShape = buttonBrushShape.shape
|
|
UM.Controller.triggerActionWithData("setBrushShape", buttonBrushShape.shape)
|
|
}
|
|
}
|