Commit a42ccf51 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Clipboard plasmoid] Support Aztec barcode

This was added in Prison 5.42

Differential Revision: https://phabricator.kde.org/D10560
parent 7ef47a72
......@@ -81,6 +81,12 @@ ColumnLayout {
checked: barcodeView.barcodeType == 1
onClicked: menu.change(1)
}
PlasmaComponents.MenuItem {
text: i18nc("Aztec barcode", "Aztec")
checkable: true
checked: barcodeView.barcodeType == 4
onClicked: menu.change(4)
}
PlasmaComponents.MenuItem {
text: i18n("Code 39")
checkable: true
......
......@@ -106,6 +106,10 @@ void ClipboardJob::start()
code = Prison::createBarcode(Prison::Code93);
break;
}
case 4: {
code = Prison::createBarcode(Prison::Aztec);
break;
}
case 0:
default: {
code = Prison::createBarcode(Prison::QRCode);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment