Cura/plugins/PaintTool/BrushShapeButton.qml
Erwan MATHIEU bbddcab4e9
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled
Proper paint-on-seam UI
CURA-12578
2025-07-03 11:05:09 +02:00

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)
}
}