mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
CURA-4870 Add menu icons
This commit is contained in:
parent
987794c515
commit
5b2ff705e7
4 changed files with 35 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue