Warning, /pim/merkuro/src/contacts/qml/private/QrCodePage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> 0002 // SPDX-FileCopyrightText: 2022 Carl Schwan <car@carlschwan.eu> 0003 // SPDX-License-Identifier: GPL-2.0-or-later 0004 0005 import QtQuick 2.15 0006 import QtQml 2.15 0007 import QtQuick.Layouts 1.15 0008 import QtQuick.Controls 2.15 as QQC2 0009 import org.kde.kirigami 2.15 as Kirigami 0010 import org.kde.merkuro.contact 1.0 0011 import org.kde.prison 1.0 as Prison 0012 0013 Kirigami.Page { 0014 property string qrCodeData 0015 title: i18n("QR Code") 0016 0017 contentItem: Prison.Barcode { 0018 id: barcodeItem 0019 content: qrCodeData 0020 barcodeType: Prison.Barcode.QRCode 0021 } 0022 0023 QQC2.Label { 0024 anchors.fill: parent 0025 horizontalAlignment: Text.AlignHCenter 0026 verticalAlignment: Text.AlignVCenter 0027 text: i18n("Creating QR code failed") 0028 wrapMode: Text.WordWrap 0029 visible: barcodeItem.implicitWidth === 0 && barcodeItem.implicitHeight === 0 0030 } 0031 }