Changeset View
Changeset View
Standalone View
Standalone View
src/app/TicketTokenDelegate.qml
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 48 | Item { | |||
---|---|---|---|---|---|
53 | 53 | | |||
54 | Rectangle { | 54 | Rectangle { | ||
55 | id: background | 55 | id: background | ||
56 | anchors.centerIn: barcodeContainer | 56 | anchors.centerIn: barcodeContainer | ||
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 assume 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 { | 65 | MouseArea { | ||
66 | anchors.fill: parent | 66 | anchors.fill: parent | ||
67 | onDoubleClicked: _brightnessManager.maxBrightness(); | 67 | onDoubleClicked: _brightnessManager.maxBrightness(); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
Show All 25 Lines |