Cura/plugins/PaintTool/BrushShapeButton.qml
Erwan MATHIEU 8f9a17d49e Simplify QML code
CURA-12661
2025-08-04 16:03:09 +02:00

18 lines
394 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: UM.Controller.properties.getValue("BrushShape") === buttonBrushShape.shape
onClicked: UM.Controller.setProperty("BrushShape", buttonBrushShape.shape)
}