Added machine type to workspace summary dialog

CURA-1263
This commit is contained in:
Jaime van Kessel 2016-12-16 12:40:59 +01:00
parent 0e09de195b
commit 8391a7971b
2 changed files with 24 additions and 1 deletions

View file

@ -982,6 +982,15 @@ class MachineManager(QObject):
return ""
@pyqtProperty(str, notify=globalContainerChanged)
def activeDefinitionName(self):
if self._global_container_stack:
definition = self._global_container_stack.getBottom()
if definition:
return definition.getMetaDataEntry("name", "")
return ""
## Get the Definition ID to use to select quality profiles for the currently active machine
# \returns DefinitionID (string) if found, empty string otherwise
# \sa getQualityDefinitionId

View file

@ -91,7 +91,21 @@ UM.Dialog
text: catalog.i18nc("@action:label", "Printer settings")
font.bold: true
}
Row
{
width: parent.width
height: childrenRect.height
Label
{
text: catalog.i18nc("@action:label", "Type")
width: parent.width / 3
}
Label
{
text: manager.activeDefinitionName
width: parent.width / 3
}
}
Row
{
width: parent.width