mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 16:54:23 +08:00
25 lines
618 B
Python
25 lines
618 B
Python
# Copyright (c) 2024 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from PyQt6.QtCore import Qt, QObject, pyqtProperty
|
|
from UM.FlameProfiler import pyqtSlot
|
|
from UM.Application import Application
|
|
from UM.Qt.ListModel import ListModel
|
|
from UM.Logger import Logger
|
|
|
|
|
|
class SettingsExport(QObject):
|
|
|
|
def __init__(self, name, value):
|
|
super().__init__()
|
|
self._name = name
|
|
self._value = value
|
|
|
|
@pyqtProperty(str, constant=True)
|
|
def name(self):
|
|
return self._name
|
|
|
|
@pyqtProperty(str, constant=True)
|
|
def value(self):
|
|
return self._value
|