Changeset View
Changeset View
Standalone View
Standalone View
tests/barcode.qml
Show All 38 Lines | 38 | RowLayout { | |||
---|---|---|---|---|---|
39 | Layout.fillWidth: true | 39 | Layout.fillWidth: true | ||
40 | TextField { | 40 | TextField { | ||
41 | id: contentEdit | 41 | id: contentEdit | ||
42 | Layout.fillWidth: true | 42 | Layout.fillWidth: true | ||
43 | text: "KF5::Prison - The KDE barcode generation framework." | 43 | text: "KF5::Prison - The KDE barcode generation framework." | ||
44 | } | 44 | } | ||
45 | ComboBox { | 45 | ComboBox { | ||
46 | id: typeCombobox | 46 | id: typeCombobox | ||
47 | model: [ "Null", "QRCode", "DataMatrix", "Aztec", "Code39", "Code93" ] | 47 | model: [ "Null", "QRCode", "DataMatrix", "Aztec", "Code39", "Code93", "Code128" ] | ||
48 | currentIndex: 3 | 48 | currentIndex: 3 | ||
49 | } | 49 | } | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | Prison.Barcode { | 52 | Prison.Barcode { | ||
53 | Layout.fillWidth: true | 53 | Layout.fillWidth: true | ||
54 | Layout.fillHeight: true | 54 | Layout.fillHeight: true | ||
55 | content: contentEdit.text | 55 | content: contentEdit.text | ||
56 | barcodeType: typeCombobox.currentIndex | 56 | barcodeType: typeCombobox.currentIndex | ||
57 | // foregroundColor: "red" | 57 | // foregroundColor: "red" | ||
58 | // backgroundColor: "green" | 58 | // backgroundColor: "green" | ||
59 | } | 59 | } | ||
60 | } | 60 | } | ||
61 | } | 61 | } |