CURA-4870 Add menu icons

This commit is contained in:
Ian Paschal 2018-03-06 17:03:44 +01:00
parent 987794c515
commit 5b2ff705e7
4 changed files with 35 additions and 12 deletions

View file

@ -7,14 +7,12 @@ import QtQuick.Controls 1.4
import UM 1.2 as UM
import Cura 1.0 as Cura
Instantiator
{
model: UM.ContainerStacksModel
{
Instantiator {
model: UM.ContainerStacksModel {
filter: {"type": "machine", "um_network_key": null}
}
MenuItem
{
MenuItem {
iconSource: UM.Theme.getIcon("printer_single")
text: model.name;
checkable: true;
checked: Cura.MachineManager.activeMachineId == model.id

View file

@ -7,14 +7,13 @@ import QtQuick.Controls 1.4
import UM 1.2 as UM
import Cura 1.0 as Cura
Instantiator
{
model: UM.ContainerStacksModel
{
Instantiator {
model: UM.ContainerStacksModel {
filter: {"type": "machine", "um_network_key": "*"}
}
MenuItem
{
MenuItem {
// TODO: Use printer_group icon when it's a cluster.
iconSource: UM.Theme.getIcon("printer_single")
text: model.name;
checkable: true;
checked: Cura.MachineManager.activeMachineId == model.id