Hide manual controls for outputdevices that don't support it

This commit is contained in:
fieldOfView 2017-10-24 11:03:51 +02:00
parent 6294900bc7
commit a9f2ad7ca3
3 changed files with 14 additions and 6 deletions

View file

@ -677,14 +677,9 @@ Column
watchedProperties: ["value"]
}
Loader
{
sourceComponent: monitorSection
property string label: catalog.i18nc("@label", "Printer control")
}
Column
{
visible: connectedPrinter != null ? connectedPrinter.canControlManually : false
enabled:
{
if (connectedPrinter == null)
@ -702,6 +697,12 @@ Column
return true;
}
Loader
{
sourceComponent: monitorSection
property string label: catalog.i18nc("@label", "Printer control")
}
Row
{
width: base.width - 2 * UM.Theme.getSize("default_margin").width