Warning, /plasma/plasma-nm/applet/contents/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.plasma.components 3.0 as PlasmaComponents3 0009 import org.kde.plasma.networkmanagement 0.2 as PlasmaNM 0010 0011 PlasmaComponents3.TextField { 0012 property int/*PlasmaNM.Enums.SecurityType*/ securityType 0013 0014 echoMode: TextInput.Password 0015 revealPasswordButtonShown: true 0016 placeholderText: i18n("Password…") 0017 validator: RegularExpressionValidator { 0018 regularExpression: (securityType === PlasmaNM.Enums.StaticWep) 0019 ? /^(?:.{5}|[0-9a-fA-F]{10}|.{13}|[0-9a-fA-F]{26})$/ 0020 : /^(?:.{8,64})$/ 0021 } 0022 }