mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Now displaying a help icon and value units
CURA-11561
This commit is contained in:
parent
fcf1e63160
commit
38b67f8015
4 changed files with 29 additions and 31 deletions
|
@ -6,12 +6,13 @@ from PyQt6.QtCore import QObject, pyqtProperty, pyqtSignal
|
|||
|
||||
class SettingExport(QObject):
|
||||
|
||||
def __init__(self, id, name, value):
|
||||
def __init__(self, id, name, value, selectable):
|
||||
super().__init__()
|
||||
self.id = id
|
||||
self._name = name
|
||||
self._value = value
|
||||
self._selected = True
|
||||
self._selected = selectable
|
||||
self._selectable = selectable
|
||||
|
||||
@pyqtProperty(str, constant=True)
|
||||
def name(self):
|
||||
|
@ -31,3 +32,7 @@ class SettingExport(QObject):
|
|||
@pyqtProperty(bool, fset = setSelected, notify = selectedChanged)
|
||||
def selected(self):
|
||||
return self._selected
|
||||
|
||||
@pyqtProperty(bool, constant=True)
|
||||
def selectable(self):
|
||||
return self._selectable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue