mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
20 lines
658 B
QML
20 lines
658 B
QML
/*
|
|
SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com>
|
|
SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
import QtQuick
|
|
import org.kde.plasma.networkmanagement as PlasmaNM
|
|
import org.kde.plasma.extras as PlasmaExtras
|
|
|
|
PlasmaExtras.PasswordField {
|
|
property int/*PlasmaNM.Enums.SecurityType*/ securityType
|
|
|
|
validator: RegularExpressionValidator {
|
|
regularExpression: (securityType === PlasmaNM.Enums.StaticWep)
|
|
? /^(?:.{5}|[0-9a-fA-F]{10}|.{13}|[0-9a-fA-F]{26})$/
|
|
: /^(?:.{8,64})$/
|
|
}
|
|
}
|