mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Very early KDE 6 release.
This commit is contained in:
parent
7cc4ccabbc
commit
686046d4f7
6272 changed files with 140920 additions and 529657 deletions
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue