Warning, /plasma/plasma-nm/applet/contents/ui/ShareNetworkQrCodePage.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2023 Kai Uwe Broulik <kde@broulik.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 import QtQuick 2.15
0008 import QtQuick.Layouts 1.2
0009 
0010 import org.kde.plasma.components 3.0 as PlasmaComponents3
0011 import org.kde.kirigami 2.20 as Kirigami
0012 
0013 import org.kde.prison 1.0 as Prison
0014 
0015 ColumnLayout {
0016     id: page
0017 
0018     property string ssid
0019     property alias content: barcode.content
0020 
0021     spacing: Kirigami.Units.smallSpacing
0022 
0023     PlasmaComponents3.Label {
0024         Layout.topMargin: page.spacing
0025         Layout.alignment: Qt.AlignHCenter
0026         Layout.minimumWidth: barcode.height
0027         Layout.maximumWidth: barcode.width - page.spacing * 2
0028         wrapMode: Text.WordWrap
0029         horizontalAlignment: Text.AlignHCenter
0030         textFormat: Text.PlainText
0031         text: i18n("Scan this QR code with another device to connect to the \"%1\" network.", page.ssid)
0032     }
0033 
0034     Prison.Barcode {
0035         id: barcode
0036         Layout.fillWidth: true
0037         Layout.fillHeight: true
0038         barcodeType: Prison.Barcode.QRCode
0039     }
0040 }