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

18 lines
406 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
Cura.ModeSelectorButton
{
id: modeSelectorButton
property string mode
selected: UM.Controller.properties.getValue("PaintType") === modeSelectorButton.mode
onClicked: UM.Controller.setProperty("PaintType", modeSelectorButton.mode)
}