Add warning icon when not all extruders have same intent

CURA-6601
This commit is contained in:
Jaime van Kessel 2019-09-26 16:26:55 +02:00
parent eced1fe907
commit b19e7cd027
No known key found for this signature in database
GPG key ID: 3710727397403C91
3 changed files with 67 additions and 1 deletions

View file

@ -8,7 +8,7 @@ import QtQuick.Controls.Styles 1.4
import UM 1.2 as UM
import Cura 1.6 as Cura
import ".."
Item
{
id: qualityRow
@ -123,6 +123,18 @@ Item
elide: Text.ElideRight
}
NoIntentIcon
{
affected_extruders: Cura.MachineManager.extruderPositionsWithNonActiveIntent
intent_type: model.name
anchors.right: intentCategoryLabel.right
anchors.rightMargin: UM.Theme.getSize("narrow_margin").width
width: intentCategoryLabel.height * 0.75
anchors.verticalCenter: parent.verticalCenter
height: width
visible: Cura.MachineManager.activeIntentCategory == model.intent_category && affected_extruders.length
}
Cura.RadioCheckbar
{
anchors