Fix visibility condition to pick up debug printers
This commit is contained in:
parent
f7790e2ed3
commit
588e3b00c5
1 changed files with 6 additions and 6 deletions
|
@ -139,7 +139,12 @@ Page {
|
||||||
id: delegate
|
id: delegate
|
||||||
contentItem.height: visible ? Math.max(column.implicitHeight, Theme.itemSizeLarge+2*Theme.paddingMedium) : 0
|
contentItem.height: visible ? Math.max(column.implicitHeight, Theme.itemSizeLarge+2*Theme.paddingMedium) : 0
|
||||||
|
|
||||||
visible: false
|
IppPrinter {
|
||||||
|
id: printer
|
||||||
|
url: model.display
|
||||||
|
}
|
||||||
|
|
||||||
|
visible: Object.keys(printer.attrs).length !== 0
|
||||||
|
|
||||||
property string name: printer.attrs["printer-name"].value != "" ? printer.attrs["printer-name"].value : qsTr("Unknown")
|
property string name: printer.attrs["printer-name"].value != "" ? printer.attrs["printer-name"].value : qsTr("Unknown")
|
||||||
property bool canPrint: Utils.supported_formats(printer, ConvertChecker, considerAdditionalFormatsSetting.value).mimetypes.indexOf(selectedFileType) != -1
|
property bool canPrint: Utils.supported_formats(printer, ConvertChecker, considerAdditionalFormatsSetting.value).mimetypes.indexOf(selectedFileType) != -1
|
||||||
|
@ -198,11 +203,6 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IppPrinter {
|
|
||||||
id: printer
|
|
||||||
url: model.display
|
|
||||||
}
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: icon
|
id: icon
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
Loading…
Reference in a new issue