mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
41 lines
1.1 KiB
QML
41 lines
1.1 KiB
QML
|
/*
|
||
|
SPDX-FileCopyrightText: 2023 Kai Uwe Broulik <kde@broulik.de>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
||
|
*/
|
||
|
|
||
|
import QtQuick 2.15
|
||
|
import QtQuick.Layouts 1.2
|
||
|
|
||
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
||
|
import org.kde.kirigami 2.20 as Kirigami
|
||
|
|
||
|
import org.kde.prison 1.0 as Prison
|
||
|
|
||
|
ColumnLayout {
|
||
|
id: page
|
||
|
|
||
|
property string ssid
|
||
|
property alias content: barcode.content
|
||
|
|
||
|
spacing: Kirigami.Units.smallSpacing
|
||
|
|
||
|
PlasmaComponents3.Label {
|
||
|
Layout.topMargin: page.spacing
|
||
|
Layout.alignment: Qt.AlignHCenter
|
||
|
Layout.minimumWidth: barcode.height
|
||
|
Layout.maximumWidth: barcode.width - page.spacing * 2
|
||
|
wrapMode: Text.WordWrap
|
||
|
horizontalAlignment: Text.AlignHCenter
|
||
|
textFormat: Text.PlainText
|
||
|
text: i18n("Scan this QR code with another device to connect to the \"%1\" network.", page.ssid)
|
||
|
}
|
||
|
|
||
|
Prison.Barcode {
|
||
|
id: barcode
|
||
|
Layout.fillWidth: true
|
||
|
Layout.fillHeight: true
|
||
|
barcodeType: Prison.Barcode.QRCode
|
||
|
}
|
||
|
}
|