Warning, /plasma/plasma-mobile/kcms/wifi/ui/PasswordField.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com>
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 org.kde.kirigami 2.10 as Kirigami
0009 import org.kde.plasma.networkmanagement as PlasmaNM
0010 
0011 Kirigami.PasswordField {
0012     property int securityType
0013     placeholderText: i18n("Password…")
0014     validator: RegularExpressionValidator {
0015                     regularExpression: if (securityType == PlasmaNM.Enums.StaticWep) {
0016                                 /^(?:.{5}|[0-9a-fA-F]{10}|.{13}|[0-9a-fA-F]{26}){1}$/
0017                             } else {
0018                                 /^(?:.{8,64}){1}$/
0019                             }
0020                     }
0021 }