Replace "transparent" Rectangles by Items

This commit is contained in:
fieldOfView 2017-01-25 15:21:37 +01:00
parent bf3d3d46e2
commit a823980d17
8 changed files with 15 additions and 30 deletions

View file

@ -10,13 +10,11 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM
import Cura 1.0 as Cura
Rectangle
Item
{
id: base;
UM.I18nCatalog { id: catalog; name:"cura"}
color: "transparent"
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0