Changeset View
Changeset View
Standalone View
Standalone View
src/app/PkPassBarcode.qml
Show All 24 Lines | 24 | Rectangle { | |||
---|---|---|---|---|---|
25 | property var pass | 25 | property var pass | ||
26 | 26 | | |||
27 | implicitHeight: barcodeLayout.implicitHeight | 27 | implicitHeight: barcodeLayout.implicitHeight | ||
28 | implicitWidth: barcodeLayout.implicitWidth | 28 | implicitWidth: barcodeLayout.implicitWidth | ||
29 | color: "white" | 29 | color: "white" | ||
30 | radius: 6 | 30 | radius: 6 | ||
31 | Layout.alignment: Qt.AlignCenter | 31 | Layout.alignment: Qt.AlignCenter | ||
32 | 32 | | |||
33 | MouseArea { | ||||
34 | anchors.fill: parent | ||||
35 | onDoubleClicked: _brightnessManager.maxBrightness(); | ||||
36 | } | ||||
37 | | ||||
33 | ColumnLayout { | 38 | ColumnLayout { | ||
34 | id: barcodeLayout | 39 | id: barcodeLayout | ||
35 | anchors.fill: parent | 40 | anchors.fill: parent | ||
36 | Prison.Barcode { | 41 | Prison.Barcode { | ||
37 | Layout.alignment: Qt.AlignCenter | 42 | Layout.alignment: Qt.AlignCenter | ||
38 | Layout.margins: 4 | 43 | Layout.margins: 4 | ||
39 | Layout.preferredWidth: Math.max(implicitWidth, 0.8 * bodyBackground.width) | 44 | Layout.preferredWidth: Math.max(implicitWidth, 0.8 * bodyBackground.width) | ||
40 | Layout.preferredHeight: Layout.preferredWidth | 45 | Layout.preferredHeight: Layout.preferredWidth | ||
Show All 12 Lines |