mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:09:01 +08:00
Show that a value is being calculated instead of showing "QVariant..."
CURA-1668
This commit is contained in:
parent
7d2a7bd157
commit
2287c2daa6
@ -5,6 +5,7 @@ from PyQt5.QtCore import pyqtProperty, Qt, pyqtSignal, pyqtSlot, QUrl
|
|||||||
|
|
||||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||||
from UM.Settings.InstanceContainer import InstanceContainer
|
from UM.Settings.InstanceContainer import InstanceContainer
|
||||||
|
from UM.Settings.SettingFunction import SettingFunction
|
||||||
|
|
||||||
class ContainerSettingsModel(ListModel):
|
class ContainerSettingsModel(ListModel):
|
||||||
LabelRole = Qt.UserRole + 1
|
LabelRole = Qt.UserRole + 1
|
||||||
@ -53,7 +54,11 @@ class ContainerSettingsModel(ListModel):
|
|||||||
while category.type != "category":
|
while category.type != "category":
|
||||||
category = category.parent
|
category = category.parent
|
||||||
|
|
||||||
values.append(container.getProperty(key, "value"))
|
value = container.getProperty(key, "value")
|
||||||
|
if type(value) == SettingFunction:
|
||||||
|
values.append("=\u0192")
|
||||||
|
else:
|
||||||
|
values.append(container.getProperty(key, "value"))
|
||||||
else:
|
else:
|
||||||
values.append("")
|
values.append("")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user