Changeset View
Changeset View
Standalone View
Standalone View
src/app/TicketTokenDelegate.qml
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 54 | Rectangle { | |||
---|---|---|---|---|---|
57 | anchors.top: barcodeContainer.top | 57 | anchors.top: barcodeContainer.top | ||
58 | anchors.bottom: barcodeContainer.bottom | 58 | anchors.bottom: barcodeContainer.bottom | ||
59 | color: "white" | 59 | color: "white" | ||
60 | implicitWidth: Math.max(root.width * 0.8, barcode.implicitWidth + barcode.anchors.margins * 2) | 60 | implicitWidth: Math.max(root.width * 0.8, barcode.implicitWidth + barcode.anchors.margins * 2) | ||
61 | // ### we asume aspect ratio 1:1 here, which is correct for QR and Aztec only | 61 | // ### we asume aspect ratio 1:1 here, which is correct for QR and Aztec only | ||
62 | implicitHeight: visible ? implicitWidth : 0 | 62 | implicitHeight: visible ? implicitWidth : 0 | ||
63 | visible: barcode.implicitHeight > 0 | 63 | visible: barcode.implicitHeight > 0 | ||
64 | 64 | | |||
65 | MouseArea { | ||||
66 | anchors.fill: parent | ||||
67 | onDoubleClicked: _brightnessManager.maxBrightness(); | ||||
68 | } | ||||
69 | | ||||
65 | Prison.Barcode { | 70 | Prison.Barcode { | ||
66 | id: barcode | 71 | id: barcode | ||
67 | anchors.fill: background | 72 | anchors.fill: background | ||
68 | anchors.margins: 4 | 73 | anchors.margins: 4 | ||
69 | barcodeType: | 74 | barcodeType: | ||
70 | { | 75 | { | ||
71 | if (currentTicket == undefined) | 76 | if (currentTicket == undefined) | ||
72 | return Prison.Barcode.Null; | 77 | return Prison.Barcode.Null; | ||
Show All 17 Lines |